Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh-3.1.9-dev-6 crashes occassionally
- X-seq: zsh-workers 13102
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: zsh-3.1.9-dev-6 crashes occassionally
- Date: Tue, 31 Oct 2000 13:51:35 +0000
- In-reply-to: "Your message of Tue, 31 Oct 2000 14:19:18 +0100." <200010311319.OAA00721@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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@xxxxxxx> Software Engineer
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author