mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
Fixed parameters for pipe2() call.
This commit is contained in:
parent
1d807d91bc
commit
f4d8791424
@ -31,7 +31,7 @@ void Process::CreateWorkers(void)
|
|||||||
int fds[2];
|
int fds[2];
|
||||||
|
|
||||||
#ifdef HAVE_PIPE2
|
#ifdef HAVE_PIPE2
|
||||||
if (pipe2(fds, O_NONBLOCK | O_CLOEXEC) < 0)
|
if (pipe2(fds, O_CLOEXEC) < 0)
|
||||||
BOOST_THROW_EXCEPTION(PosixException("pipe2() failed.", errno));
|
BOOST_THROW_EXCEPTION(PosixException("pipe2() failed.", errno));
|
||||||
#else /* HAVE_PIPE2 */
|
#else /* HAVE_PIPE2 */
|
||||||
if (pipe(fds) < 0)
|
if (pipe(fds) < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user