]> granicus.if.org Git - icinga2/commitdiff
Process class: Pipe FD should be blocking.
authorGunnar Beutner <gunnar.beutner@netways.de>
Sat, 23 Mar 2013 17:36:28 +0000 (18:36 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Sat, 23 Mar 2013 17:36:28 +0000 (18:36 +0100)
lib/base/process-unix.cpp

index 6ae2d15663bd6ecbd401e7cb46ac5dfee96e1b66..52551100992ad2e256fc7946ef732576fac48d81 100644 (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));