mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
parent
f1cf632254
commit
eb15f4d866
6
kqueue.c
6
kqueue.c
@ -278,7 +278,7 @@ kq_add(void *arg, struct event *ev)
|
||||
kev.filter = EVFILT_SIGNAL;
|
||||
kev.flags = EV_ADD;
|
||||
if (!(ev->ev_events & EV_PERSIST))
|
||||
kev.filter |= EV_ONESHOT;
|
||||
kev.flags |= EV_ONESHOT;
|
||||
kev.udata = ev;
|
||||
|
||||
if (kq_insert(kqop, &kev) == -1)
|
||||
@ -297,7 +297,7 @@ kq_add(void *arg, struct event *ev)
|
||||
kev.filter = EVFILT_READ;
|
||||
kev.flags = EV_ADD;
|
||||
if (!(ev->ev_events & EV_PERSIST))
|
||||
kev.filter |= EV_ONESHOT;
|
||||
kev.flags |= EV_ONESHOT;
|
||||
kev.udata = ev;
|
||||
|
||||
if (kq_insert(kqop, &kev) == -1)
|
||||
@ -312,7 +312,7 @@ kq_add(void *arg, struct event *ev)
|
||||
kev.filter = EVFILT_WRITE;
|
||||
kev.flags = EV_ADD;
|
||||
if (!(ev->ev_events & EV_PERSIST))
|
||||
kev.filter |= EV_ONESHOT;
|
||||
kev.flags |= EV_ONESHOT;
|
||||
kev.udata = ev;
|
||||
|
||||
if (kq_insert(kqop, &kev) == -1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user