bug-bash
[Top][All Lists]
Advanced

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

Re: Bad file descriptor with coproc and pipe


From: Chet Ramey
Subject: Re: Bad file descriptor with coproc and pipe
Date: Thu, 06 Feb 2014 14:22:17 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.1.1

On 2/5/14 4:37 PM, Michal Sojka wrote:

>> Bash closes file descriptors associated with coprocs in child processes,
>> since they are pipes.  It's even more careful when those child processes
>> are part of pipelines.  It's really a bad idea to have pipe file
>> descriptors open in multiple processes; that prevents SIGPIPE generation
>> and EOF on read when one writer exits.
> 
> Thanks for the explanation. Then the bug is that it is not documented:
> https://www.gnu.org/software/bash/manual/bashref.html#Coprocesses

Thanks; this is already in the bash-4.3 version of the manual(s).

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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