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


Groups > gnu.bash.bug > #15213

Re: leaks fd for internal functions but not external command

From Andreas Schwab <schwab@suse.de>
Newsgroups gnu.bash.bug
Subject Re: leaks fd for internal functions but not external command
Date 2019-07-23 17:38 +0200
Message-ID <mailman.2083.1563896289.2688.bug-bash@gnu.org> (permalink)
References (2 earlier) <CAOj-5WCFbUoU1x2aUvidT1opUbGeG2jFSaM__ch=SUAfzQbQ9w@mail.gmail.com> <78679ee9-fdaf-5180-d32f-81d92b936538@case.edu> <CAOj-5WBei5KMar7c967=jSwZRsW-Rz-0iL20TQMeuQoz61rfkw@mail.gmail.com> <CAOj-5WA_URW5b7a2EU+rR=T_wbTDEpOM_PSo9yNyU-Dqj+cWaA@mail.gmail.com> <mvmk1c8u5gj.fsf@suse.de>

Show all headers | View raw


On Jul 23 2019, Sam Liddicott <sam@liddicott.com> wrote:

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

When you run an external command the redirection is performed in the
child.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: leaks fd for internal functions but not external command Andreas Schwab <schwab@suse.de> - 2019-07-23 17:38 +0200

csiph-web