Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15211 > unrolled thread

Re: leaks fd for internal functions but not external command

Started bySam Liddicott <sam@liddicott.com>
First post2019-07-23 16:20 +0100
Last post2019-07-23 16:20 +0100
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: leaks fd for internal functions but not external command Sam Liddicott <sam@liddicott.com> - 2019-07-23 16:20 +0100

#15211 — Re: leaks fd for internal functions but not external command

FromSam Liddicott <sam@liddicott.com>
Date2019-07-23 16:20 +0100
SubjectRe: leaks fd for internal functions but not external command
Message-ID<mailman.2080.1563895287.2688.bug-bash@gnu.org>
On Tue, 23 Jul 2019 at 16:15, Sam Liddicott <sam@liddicott.com> wrote:

>
>
> On Tue, 23 Jul 2019 at 16:13, Chet Ramey <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?
>

It got closed in the parent. The lsof is running for the parent, the main
process. /bin/echo has quit before the lsof runs.

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web