From: Peter Stephenson <pws@csr.com>
To: zsh-users@sunsite.dk (Zsh users list)
Subject: Re: Bi-directional pipe
Date: Fri, 09 Jun 2006 10:33:38 +0100 [thread overview]
Message-ID: <200606090933.k599Xchx006075@news01.csr.com> (raw)
In-Reply-To: <060608202844.ZM10410@torch.brasslantern.com>
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@csr.com> 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
prev parent reply other threads:[~2006-06-09 9:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-07 12:50 Guillaume Chazarain
2006-06-07 14:56 ` Peter Stephenson
2006-06-07 15:41 ` Guillaume Chazarain
2006-06-09 3:28 ` Bart Schaefer
2006-06-09 9:06 ` Guillaume Chazarain
2006-06-09 9:51 ` Bart Schaefer
2006-06-11 15:06 ` Vincent Lefevre
2006-06-11 19:24 ` Bart Schaefer
2006-06-09 9:33 ` Peter Stephenson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200606090933.k599Xchx006075@news01.csr.com \
--to=pws@csr.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).