bug-bash
[Top][All Lists]
Advanced

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

Re: Open pipe passed to child process


From: Chet Ramey
Subject: Re: Open pipe passed to child process
Date: Wed, 24 Aug 2016 19:05:03 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 8/24/16 5:04 PM, Adam Danischewski wrote:
> Actually I misspoke before, there /is /this issue on Solaris 10. I didn't
> update the logic sufficiently to detect it at first. So it looks like this
> is could be a potentially more significant issue -- affecting enterprise
> user markets. 

I suggest that these enterprise user markets have developed ways to deal
with this, since it's how Unix has behaved from its earliest days.

File descriptors are inherited from parent to child, and descriptors
duplicated using dup/dup2/fcntl share the same underlying file object,
including the file pointer.  Posix standardizes this historical behavior.

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



reply via email to

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