Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bi-directional pipe



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