Re: leaks fd for internal functions but not external command
From:
Andreas Schwab
Subject:
Re: leaks fd for internal functions but not external command
Date:
Tue, 23 Jul 2019 17:38:04 +0200
User-agent:
Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux)
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."