bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Process Substitution backgrounds the command list?


From: Chet Ramey
Subject: Re: Process Substitution backgrounds the command list?
Date: Sun, 16 Sep 2007 15:30:34 -0400
User-agent: Thunderbird 2.0.0.6 (Macintosh/20070728)

Bob Proulx wrote:
> Chet Ramey wrote:
>> No, there's no way to wait for it.
> 
> Hmm...  That does make it very difficult to actually use correctly.

Not really, if you think about the intended use.  The original intent
was to allow applications to read and write to and from processes
in cases where pipes were inconvenient or impossible.  The vast
majority of the cases result in the caller reading all of the output
generated by the process, or the process consuming all of the data
sent by the caller.  Most of the rest of the cases should result in
the asynchronous process receiving SIGPIPE/EPIPE, depending on process
scheduling and kernel behavior.

Yours is the first complaint about this particular implementation detail.
I suspect that most of the use cases fit the above paragraph.  It doesn't
appear to be a high-priority problem.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]