[icinga-checkins] icinga.org: icinga2/master: Fixed parameters for pipe2() call.

git at icinga.org git at icinga.org
Wed Feb 13 21:06:11 CET 2013


Module: icinga2
Branch: master
Commit: f4d87914242a217152dad34bc0c2ee6a92f1d48c
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=f4d87914242a217152dad34bc0c2ee6a92f1d48c

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Wed Feb 13 21:05:58 2013 +0100

Fixed parameters for pipe2() call.

---

 lib/base/process-unix.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/base/process-unix.cpp b/lib/base/process-unix.cpp
index 25d3141..dda0f48 100644
--- a/lib/base/process-unix.cpp
+++ b/lib/base/process-unix.cpp
@@ -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)





More information about the icinga-checkins mailing list