From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9182 invoked from network); 14 May 2002 10:05:14 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 14 May 2002 10:05:14 -0000 Received: (qmail 23148 invoked by alias); 14 May 2002 10:05:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17151 Received: (qmail 23117 invoked from network); 14 May 2002 10:05:06 -0000 To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: PATCH: more selection In-reply-to: "Borsenkow Andrej"'s message of "Tue, 14 May 2002 13:48:40 +0400." Date: Tue, 14 May 2002 11:04:37 +0100 Message-ID: <12159.1021370677@csr.com> From: Peter Stephenson 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 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. **********************************************************************