From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20049 invoked from network); 23 May 2007 11:50:41 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.0 (2007-05-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=no version=3.2.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 May 2007 11:50:41 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 10640 invoked from network); 23 May 2007 11:50:36 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 May 2007 11:50:36 -0000 Received: (qmail 12993 invoked by alias); 23 May 2007 11:50:34 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23462 Received: (qmail 12984 invoked from network); 23 May 2007 11:50:33 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 23 May 2007 11:50:33 -0000 Received: (qmail 10381 invoked from network); 23 May 2007 11:50:33 -0000 Received: from cluster-c.mailcontrol.com (168.143.177.190) by a.mx.sunsite.dk with SMTP; 23 May 2007 11:50:26 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly19c.srv.mailcontrol.com (MailControl) with ESMTP id l4NBmsIH009040 for ; Wed, 23 May 2007 12:50:21 +0100 Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Wed, 23 May 2007 12:50:17 +0100 Date: Wed, 23 May 2007 12:50:16 +0100 From: Peter Stephenson To: Zsh-Workers Subject: Re: Subshell with multios causes hang Message-ID: <20070523125016.6a2fd608@news01.csr.com> In-Reply-To: <1179919513.3015.569.camel@aston.uk.cyberscience.com> References: <1179832903.3015.505.camel@aston.uk.cyberscience.com> <20070522182925.4c43a67e@news01.csr.com> <20070523111203.299233ec@news01.csr.com> <1179919513.3015.569.camel@aston.uk.cyberscience.com> Organization: CSR X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 May 2007 11:50:17.0152 (UTC) FILETIME=[8825D400:01C79D30] X-Scanned-By: MailControl A-07-07-05 (www.mailcontrol.com) on 10.67.0.129 On Wed, 23 May 2007 12:25:13 +0100 John Buddery wrote: > % echo This is the file >file > % fn() { cat; } > % fn <$(echo file file) > This is the file > This is the file > (hang at this point) > > One way to fix it would be to block the child signal until the child > pid was registered (patch below). That seems entirely reasonable and unproblematic. I've committed it (with a comment and the case above in another test). Sorry about the wrapping in the previous post---I've tracked down claws-mail's autowrap feature and turned it off (though these things have a habit of coming back from the dead...) -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview