diff --git a/kqueue.c b/kqueue.c index 5bc44641..06af294b 100644 --- a/kqueue.c +++ b/kqueue.c @@ -225,6 +225,7 @@ kq_dispatch(struct event_base *base, void *arg, struct timeval *tv) if (events[i].data == EBADF || events[i].data == ENOENT) continue; + errno = events[i].data; return (-1); }