diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2004-01-05 19:20:19 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2004-01-05 19:20:19 +0000 |
commit | 4f1bcb70b733d47bbc51a0560077b16633f94da1 (patch) | |
tree | 8414eb5e1741e5d1a177c93534f39afbeac7f829 /lib | |
parent | b988c8715376c3ea0bdba11f0761286ccc0a1bed (diff) |
support NOTE_EOF; from marius aamodt eriksen; ok tedu, millert
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libevent/kqueue.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libevent/kqueue.c b/lib/libevent/kqueue.c index e4a8a51b081..0e9ee45f0b2 100644 --- a/lib/libevent/kqueue.c +++ b/lib/libevent/kqueue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kqueue.c,v 1.10 2003/07/09 10:54:38 markus Exp $ */ +/* $OpenBSD: kqueue.c,v 1.11 2004/01/05 19:20:18 markus Exp $ */ /* * Copyright 2000-2002 Niels Provos <provos@citi.umich.edu> @@ -293,6 +293,8 @@ kq_add(void *arg, struct event *ev) kev.ident = ev->ev_fd; kev.filter = EVFILT_READ; kev.flags = EV_ADD; + /* Make it behave like select() and poll() */ + kev.fflags = NOTE_EOF; if (!(ev->ev_events & EV_PERSIST)) kev.flags |= EV_ONESHOT; kev.udata = INTPTR(ev); |