diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2021-02-22 00:25:17 +0100 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2021-02-22 14:17:24 +0100 |
commit | 584fd91d2d294883e6896dbd64a2176528e94581 (patch) | |
tree | e08052110d4bd71d68b3bfc96e9c931dcae64ba0 /src/shutdown.cpp | |
parent | 828bb776d29cbdfad3937ba100c428e3244c652f (diff) |
init: only use pipe2 if availabile, check in configure
Diffstat (limited to 'src/shutdown.cpp')
-rw-r--r-- | src/shutdown.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shutdown.cpp b/src/shutdown.cpp index df5f996022..6a73e0b2d8 100644 --- a/src/shutdown.cpp +++ b/src/shutdown.cpp @@ -32,7 +32,7 @@ static int g_shutdown_pipe[2] = {-1, -1}; bool InitShutdownState() { #ifndef WIN32 -#if HAVE_O_CLOEXEC +#if HAVE_O_CLOEXEC && HAVE_DECL_PIPE2 // If we can, make sure that the file descriptors are closed on exec() // to prevent interference. if (pipe2(g_shutdown_pipe, O_CLOEXEC) != 0) { |