Re: [PATCH] be paranoid about closed stdin/stdout/stderr
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Aug 26, 2008, 06:57 UTC
- Message-ID
- <48B3A948.3080800@viscovery.net>
- In-Reply-To
- <E1KXsL9-0004ef-Co@fencepost.gnu.org>
Paolo Bonzini schrieb:
Show 5 quoted lines
> + /* > + * Always open file descriptors 0/1/2 to avoid clobbering files > + * in die(). It also avoids not messing up when the pipes are > + * dup'ed onto stdin/stdout/stderr in the child processes we spawn. > + */
I see your point, but I don't have an opinion whether this stretch is necessary.
However, *if* we do this, we must do it for all non-builtins as well!
-- Hannes