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

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Andreas Schwab <schwab@suse.de>
Newsgroups gnu.bash.bug
Subject Re: leaks fd for internal functions but not external command
Date Tue, 23 Jul 2019 17:38:04 +0200
Lines 15
Approved bug-bash@gnu.org
Message-ID <mailman.2083.1563896289.2688.bug-bash@gnu.org> (permalink)
References <CAOj-5WDk=8kt=J8wO23giFVWRp5=_GbCNB2HQO87Upc4kkTg+g@mail.gmail.com> <5c34ecd5-c8b2-7000-46bc-1bbe3f71f163@case.edu> <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>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain
X-Trace usenet.stanford.edu 1563896290 18953 209.51.188.17 (23 Jul 2019 15:38:10 GMT)
X-Complaints-To action@cs.stanford.edu
Cc Chester Ramey <chet.ramey@case.edu>, bug-bash@gnu.org, bash@packages.debian.org
To Sam Liddicott <sam@liddicott.com>
Envelope-to bug-bash@gnu.org
X-Virus-Scanned by amavisd-new at test-mx.suse.de
X-Yow I appoint you ambassador to Fantasy Island!!!
In-Reply-To <CAOj-5WA_URW5b7a2EU+rR=T_wbTDEpOM_PSo9yNyU-Dqj+cWaA@mail.gmail.com> (Sam Liddicott's message of "Tue, 23 Jul 2019 16:20:47 +0100")
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux)
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic]
X-Received-From 195.135.220.15
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <mvmk1c8u5gj.fsf@suse.de>
X-Mailman-Original-References <CAOj-5WDk=8kt=J8wO23giFVWRp5=_GbCNB2HQO87Upc4kkTg+g@mail.gmail.com> <5c34ecd5-c8b2-7000-46bc-1bbe3f71f163@case.edu> <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>
Xref csiph.com gnu.bash.bug:15213

Show key headers only | 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