Process class: Pipe FD should be blocking.

This commit is contained in:
Gunnar Beutner 2013-03-23 18:36:28 +01:00
parent 6b6be8eec3
commit 8b065b36df
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ void Process::Run(void)
int fds[2];
#if HAVE_PIPE2
if (pipe2(fds, O_NONBLOCK | O_CLOEXEC) < 0) {
if (pipe2(fds, O_CLOEXEC) < 0) {
BOOST_THROW_EXCEPTION(posix_error()
<< boost::errinfo_api_function("pipe2")
<< boost::errinfo_errno(errno));