svn:r31
This commit is contained in:
Niels Provos 2002-09-08 02:46:44 +00:00
parent f1cf632254
commit eb15f4d866

View File

@ -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)