From: Paolo Bonzini Date: Wed, 27 Aug 2008 04:38:24 GMT Subject: Re: [PATCH] be paranoid about closed stdin/stdout/stderr Message-ID: <48B4DA40.1040406@gnu.org> In-Reply-To: > Yes, I can work around this issue with sh -c 'git fetch > 0 But I don't see the harm in being safe. It's one less potential > surprise for users. This is the first program I've encountered > that broke due to stdin being closed Not really. I suspect every program that uses pipe/dup to fork a child could be wrong (the only one I ever wrote breaks), and I wonder if the higher-level popen(3) interface works properly. Paolo