bug-bash
[Top][All Lists]
Advanced

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

Re: leaks fd for internal functions but not external command


From: Chet Ramey
Subject: Re: leaks fd for internal functions but not external command
Date: Tue, 23 Jul 2019 11:18:27 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 7/23/19 11:15 AM, Sam Liddicott wrote:
> 
> 
> On Tue, 23 Jul 2019 at 16:13, Chet Ramey <chet.ramey@case.edu
> <mailto:chet.ramey@case.edu>> wrote:
> 
>     On 7/23/19 11:11 AM, Sam Liddicott wrote:
> 
>     > The report concerns the different behaviour with internal and external
>     > operations.
> 
>     Right. The close-on-exec is deliberate. That's how it was intended.
> 
> 
> Doesn't close-on-exec usually takes effect only on the process that does
> the exec?
> i.e. the fork that does the exec, not the parent process?

Right. Isn't that what's happening? The fd got closed in the /bin/echo
process but not in the parent?

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



reply via email to

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