Bugfix: the main task fd must not be non-blocking.

This commit is contained in:
Gunnar Beutner 2013-02-13 15:41:14 +01:00
parent 26e2da7a7d
commit cf094fe4b3
1 changed files with 1 additions and 2 deletions

View File

@ -37,10 +37,9 @@ void Process::CreateWorkers(void)
if (pipe(fds) < 0)
BOOST_THROW_EXCEPTION(PosixException("pipe() failed.", errno));
/* Don't bother setting fds[1] to non-blocking/clo-exec as we'll only
/* Don't bother setting fds[1] to clo-exec as we'll only
* use it in the following dup() call. */
Utility::SetNonBlocking(fds[1]);
Utility::SetCloExec(fds[1]);
#endif /* HAVE_PIPE2 */