mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-11 13:24:43 -04:00
oneshot means that its removed from the kernel list already
svn:r51
This commit is contained in:
parent
0036d79ab6
commit
c48e71d839
4
kqueue.c
4
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user