summaryrefslogtreecommitdiff
path: root/kqueue.c
diff options
context:
space:
mode:
authorNiels Provos <provos@gmail.com>2007-11-25 06:57:59 +0000
committerNiels Provos <provos@gmail.com>2007-11-25 06:57:59 +0000
commit88897852fc72c2cd43c057f2fc550b5842d5b857 (patch)
tree3c60ef4af996cd1d1a02be96d003422626578b68 /kqueue.c
parent8c3396b0c60bd6c0dcc4f8baeb9174810247e557 (diff)
downloadlibevent-88897852fc72c2cd43c057f2fc550b5842d5b857.tar.gz
provide event_reinit() to reinitialized an event_base after fork - necessary for epoll/kqueue
svn:r539
Diffstat (limited to 'kqueue.c')
-rw-r--r--kqueue.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kqueue.c b/kqueue.c
index c6dbf222..87c5fa7d 100644
--- a/kqueue.c
+++ b/kqueue.c
@@ -58,6 +58,7 @@
#endif
#include "event.h"
+#include "event-internal.h"
#include "log.h"
#define EVLIST_X_KQINKERNEL 0x1000
@@ -87,7 +88,8 @@ const struct eventop kqops = {
kq_del,
kq_recalc,
kq_dispatch,
- kq_dealloc
+ kq_dealloc,
+ 1 /* need reinit */
};
void *