summaryrefslogtreecommitdiff
path: root/lib/libevent/kqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libevent/kqueue.c')
-rw-r--r--lib/libevent/kqueue.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libevent/kqueue.c b/lib/libevent/kqueue.c
index fa106d4dd1f..6889490036e 100644
--- a/lib/libevent/kqueue.c
+++ b/lib/libevent/kqueue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kqueue.c,v 1.5 2002/07/10 14:41:31 art Exp $ */
+/* $OpenBSD: kqueue.c,v 1.6 2002/09/08 07:52:33 itojun Exp $ */
/*
* Copyright 2000-2002 Niels Provos <provos@citi.umich.edu>
@@ -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)