summaryrefslogtreecommitdiff
path: root/kqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'kqueue.c')
-rw-r--r--kqueue.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kqueue.c b/kqueue.c
index 3bc6c2db..d760440c 100644
--- a/kqueue.c
+++ b/kqueue.c
@@ -266,10 +266,8 @@ kq_dispatch(struct event_base *base, void *arg, struct timeval *tv)
if (!which)
continue;
- if (!(ev->ev_events & EV_PERSIST)) {
- ev->ev_flags &= ~EVLIST_X_KQINKERNEL;
+ if (!(ev->ev_events & EV_PERSIST))
event_del(ev);
- }
event_active(ev, which,
ev->ev_events & EV_SIGNAL ? events[i].data : 1);