Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: more selection
- X-seq: zsh-workers 17151
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: Re: PATCH: more selection
- Date: Tue, 14 May 2002 11:04:37 +0100
- In-reply-to: "Borsenkow Andrej"'s message of "Tue, 14 May 2002 13:48:40 +0400." <Pine.SV4.4.44.0205141343240.14721-100000@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Borsenkow Andrej wrote:
> My only concern is that if there is any chance handler will block you can
> just as well kill your shell - there is no way to give shell input
> anymore.
Yes, you could use `read -t' to read from it. But unless someone else
has been tinkering with the fd before the handler get's to look at it,
the result of the select assures you that the first read won't block.
There's some rudimentary support for recovery: if there's an error in
a handler (e.g. ^C), the error flag is unset and the select is tried
again with all the handlers removed (it could simply drop through to the
read). It could be altered so that this actually uninstalled the
handler in question.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 392070
**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential
and/or privileged material.
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is
prohibited.
If you received this in error, please contact the sender and
delete the material from any computer.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author