Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
start-stop-daemon: remove unnecessary carve-out for pipe FD
1364e66 exempted the write end of the synchronization pipe from the close() loop in the child process, but this is unnecessary, as the pipe is opened with O_CLOEXEC, and the child process calls execvp() soon after the close() loop, with the intervening code not needing the pipe. Indeed, the pipe only needs to remain open in the child process until after the call to setsid(), which occurs well before the close() loop. So, eliminate the needless carve-out from the close() loop, in preparation for introducing closefrom().
- Loading branch information