From c48e71d839977ced6aff4eb52ca7e01f7d410d83 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Sat, 8 Mar 2003 16:44:51 +0000 Subject: [PATCH] oneshot means that its removed from the kernel list already svn:r51 --- kqueue.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kqueue.c b/kqueue.c index 9e48b704..a61a6057 100644 --- a/kqueue.c +++ b/kqueue.c @@ -248,8 +248,10 @@ kq_dispatch(void *arg, struct timeval *tv) if (!which) continue; - if (!(ev->ev_events & EV_PERSIST)) + if (!(ev->ev_events & EV_PERSIST)) { + ev->ev_flags &= ~EVLIST_X_KQINKERNEL; event_del(ev); + } event_active(ev, which, ev->ev_events & EV_SIGNAL ? events[i].data : 1); -- 2.40.0