summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2009-07-19 03:12:28 +0000
committerroot <root>2009-07-19 03:12:28 +0000
commiteaa7a6f0efd6057d048be8dbfe70fdaab2b63af8 (patch)
treeec197a22e67b6fa105826ca0464bcc5597ca5bef /ev.c
parentdfa24c077cc325f0e21e169379aa6cac343cdaa2 (diff)
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ev.c b/ev.c
index a20623e..15e338d 100644
--- a/ev.c
+++ b/ev.c
@@ -2685,7 +2685,9 @@ ev_signal_start (EV_P_ ev_signal *w)
array_needsize (ANSIG, signals, signalmax, w->signum, array_init_zero);
#ifndef _WIN32
+# if EV_USE_SIGNALFD
if (sigfd < 0)/*TODO*/
+# endif
sigdelset (&prev, w->signum);
sigprocmask (SIG_SETMASK, &prev, 0);
#endif
@@ -2699,7 +2701,9 @@ ev_signal_start (EV_P_ ev_signal *w)
#if _WIN32
signal (w->signum, ev_sighandler);
#else
+# if EV_USE_SIGNALFD
if (sigfd < 0) /*TODO*/
+# endif
{
struct sigaction sa = { };
sa.sa_handler = ev_sighandler;