fixed a conditional check for O_CLOEXEC in mux.c
This commit is contained in:
parent
3b2901b8f1
commit
a866592695
@ -1119,7 +1119,7 @@ int qse_mux_setupchan (qse_mux_t* mux)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(HAVE_PIPE2)
|
#if defined(HAVE_PIPE2) && defined(O_CLOEXEC)
|
||||||
if (pipe2(mux->chan, O_CLOEXEC | O_NONBLOCK) <= -1)
|
if (pipe2(mux->chan, O_CLOEXEC | O_NONBLOCK) <= -1)
|
||||||
#else
|
#else
|
||||||
if (pipe(mux->chan) <= -1)
|
if (pipe(mux->chan) <= -1)
|
||||||
@ -1130,7 +1130,7 @@ int qse_mux_setupchan (qse_mux_t* mux)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#if defined(HAVE_PIPE2)
|
#if defined(HAVE_PIPE2) && defined(O_CLOEXEC)
|
||||||
/* do nothing */
|
/* do nothing */
|
||||||
#else
|
#else
|
||||||
int flags;
|
int flags;
|
||||||
|
Loading…
Reference in New Issue
Block a user