summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ev.c b/ev.c
index a5fee54..66f6459 100644
--- a/ev.c
+++ b/ev.c
@@ -1522,7 +1522,8 @@ ev_feed_signal (int signum)
return;
#endif
- evpipe_init (EV_A);
+ if (!ev_active (&pipe_w))
+ return;
signals [signum - 1].pending = 1;
evpipe_write (EV_A_ &sig_pending);