From 066065620026b8a99e77fc82a6009fd2adea86d7 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 13 Apr 2009 14:31:59 +0200 Subject: [PATCH] O_CLOEXEC is not always available on Linux, too --- ucw/mainloop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ucw/mainloop.c b/ucw/mainloop.c index 2172e823..d6d9c367 100644 --- a/ucw/mainloop.c +++ b/ucw/mainloop.c @@ -35,9 +35,9 @@ static struct pollfd *main_poll_table; static uns main_sigchld_set_up; static volatile sig_atomic_t chld_received = 0; -#ifdef CONFIG_LINUX -// On Linux, O_CLOEXEC flag is available and we can get around the race -// condition of poll(). +#ifdef O_CLOEXEC +// On recent Linux systems, O_CLOEXEC flag is available and we can get around +// the race condition of poll(). #define USE_SELF_PIPE static int sig_pipe_recv, sig_pipe_send; #endif -- 2.39.2