Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bi-directional pipe
- X-seq: zsh-users 10365
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx (Zsh users list)
- Subject: Re: Bi-directional pipe
- Date: Fri, 09 Jun 2006 10:33:38 +0100
- In-reply-to: <060608202844.ZM10410@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <4486CBA2.9030501@xxxxxxxx> <060608202844.ZM10410@xxxxxxxxxxxxxxxxxxxxxx>
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 <pws@xxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author