diff options
-rw-r--r-- | kqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |