From: Martin Mares Date: Mon, 13 Apr 2009 12:31:59 +0000 (+0200) Subject: O_CLOEXEC is not always available on Linux, too X-Git-Tag: holmes-import~23 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=066065620026b8a99e77fc82a6009fd2adea86d7;p=libucw.git O_CLOEXEC is not always available on Linux, too --- 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