From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27657 invoked from network); 9 Jun 2006 09:36:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 9 Jun 2006 09:36:15 -0000 Received: (qmail 55841 invoked from network); 9 Jun 2006 09:36:08 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 Jun 2006 09:36:08 -0000 Received: (qmail 7551 invoked by alias); 9 Jun 2006 09:35:59 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10365 Received: (qmail 7542 invoked from network); 9 Jun 2006 09:35:58 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 9 Jun 2006 09:35:58 -0000 Received: (qmail 54542 invoked from network); 9 Jun 2006 09:35:58 -0000 Received: from cluster-c.mailcontrol.com (168.143.177.190) by a.mx.sunsite.dk with SMTP; 9 Jun 2006 09:35:56 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly07c.srv.mailcontrol.com (MailControl) with ESMTP id k599TmMg008197 for ; Fri, 9 Jun 2006 10:35:45 +0100 Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Fri, 9 Jun 2006 10:33:05 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.4/8.13.4) with ESMTP id k599Xcv4006078 for ; Fri, 9 Jun 2006 10:33:38 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.4/8.13.4/Submit) with ESMTP id k599Xchx006075 for ; Fri, 9 Jun 2006 10:33:38 +0100 Message-Id: <200606090933.k599Xchx006075@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-users@sunsite.dk (Zsh users list) Subject: Re: Bi-directional pipe In-reply-to: <060608202844.ZM10410@torch.brasslantern.com> References: <4486CBA2.9030501@yahoo.fr> <060608202844.ZM10410@torch.brasslantern.com> Date: Fri, 09 Jun 2006 10:33:38 +0100 From: Peter Stephenson X-OriginalArrivalTime: 09 Jun 2006 09:33:05.0776 (UTC) FILETIME=[B61C8700:01C68BA7] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-07-00-10 (www.mailcontrol.com) on 10.67.0.117 Bart Schaefer wrote: > On Jun 7, 2:50pm, Guillaume Chazarain wrote: > } > } Is there a way to make a bi-directional pipe in zsh? > > Peter has already given an answer to this, but I just have to add that > having two processes connected in a loop this way is a sure road to > deadlock unless both processes are fully prepared for it (which means > for example that they're polling their input and output with select() > or poll() and using non-blocking reads and writes). Right, that's one of the reasons for using the TCP system as described in my previous response to Johann; it drains any data that arrives during an interactive session. -- 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