zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: Re: zsh-3.1.9-dev-6 crashes occassionally
Date: Tue, 31 Oct 2000 13:51:35 +0000	[thread overview]
Message-ID: <0G3A00G16RTYPP@la-la.cambridgesiliconradio.com> (raw)
In-Reply-To: "Your message of Tue, 31 Oct 2000 14:19:18 +0100." <200010311319.OAA00721@beta.informatik.hu-berlin.de>

Sven wrote:
> +	ALLOWTRAPS {
> +	    while ((r = read(SHTTY, &cc, 1)) != 1) {

I suppose you've thought this through more than I have, but wouldn't it be
safer just to run traps every time the read returns?  I'm assuming a signal
arriving will interrupt the read in any case, so as far as I can see it's
pretty much equivalent in practise.  There's nothing too nasty in the block
underneath, but it does call zrefresh() and attachtty() which are probably
best treated as black boxes.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070


  reply	other threads:[~2000-10-31 13:52 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-31 13:19 Sven Wischnowsky
2000-10-31 13:51 ` Peter Stephenson [this message]
2000-10-31 14:01   ` Sven Wischnowsky
2000-10-31 15:25     ` Bart Schaefer
2000-10-31 15:43       ` Andrej Borsenkow
  -- strict thread matches above, loose matches on Subject: below --
2000-11-08 10:54 Sven Wischnowsky
2000-11-08  9:41 Sven Wischnowsky
2000-11-08 10:33 ` Thomas Köhler
2000-11-01  9:41 Sven Wischnowsky
2000-11-03 15:42 ` Bart Schaefer
2000-11-05 17:55   ` Thomas Köhler
2000-10-31 15:42 Sven Wischnowsky
2000-10-30 10:25 Sven Wischnowsky
2000-10-30  8:32 Sven Wischnowsky
2000-10-30  9:56 ` Peter Stephenson
2000-10-30 10:10 ` Thomas Köhler
2000-10-30 16:18 ` Bart Schaefer
2000-10-24  7:53 Sven Wischnowsky
2000-10-23 13:04 Sven Wischnowsky
2000-10-23 15:12 ` Thomas Köhler
2000-10-21 12:34 Thomas Köhler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0G3A00G16RTYPP@la-la.cambridgesiliconradio.com \
    --to=pws@csr.com \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).