]> granicus.if.org Git - icinga2/commitdiff
Fixed parameters for pipe2() call.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 13 Feb 2013 20:05:58 +0000 (21:05 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 13 Feb 2013 20:05:58 +0000 (21:05 +0100)
lib/base/process-unix.cpp

index 25d314119435808b7247750565163496ad25b678..dda0f486611bd018622f4fcbac8b6809e979bad3 100644 (file)
@@ -31,7 +31,7 @@ void Process::CreateWorkers(void)
        int fds[2];
 
 #ifdef HAVE_PIPE2
-       if (pipe2(fds, O_NONBLOCK | O_CLOEXEC) < 0)
+       if (pipe2(fds, O_CLOEXEC) < 0)
                BOOST_THROW_EXCEPTION(PosixException("pipe2() failed.", errno));
 #else /* HAVE_PIPE2 */
        if (pipe(fds) < 0)