From: Jonathan Nieder Date: Thu, 21 Oct 2010 20:39:26 GMT Subject: Re: [PATCH v4 15/15] daemon: opt-out on features that require posix Message-ID: <20101021203926.GB12685@burratino> In-Reply-To: Erik Faye-Lund wrote: > I understand that it might be beneficial in the --detach code-path, > but how can stdint, stdout or stderr be closed in this code-path? Maybe "git daemon >&- 2>&-"? In some situations involving setuid programs, this kind of thing can be a security problem (since fd 1 is not taken, the first open() uses that fd, so output intended for stdout goes to that file).