summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kqueue.c b/kqueue.c
index 1f41b5a7..a959c58a 100644
--- a/kqueue.c
+++ b/kqueue.c
@@ -154,7 +154,7 @@ kq_init(struct event_base *base)
if (kevent(kq,
kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 ||
(int)kqueueop->events[0].ident != -1 ||
- kqueueop->events[0].flags != EV_ERROR) {
+ !(kqueueop->events[0].flags & EV_ERROR)) {
event_warn("%s: detected broken kqueue; not using.", __func__);
goto err;
}