From: Niels Provos Date: Thu, 7 Apr 2005 03:35:56 +0000 (+0000) Subject: return error code when kqueue fails on a specific fd; from alexander von X-Git-Tag: release-1.1b~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d47798be5a106177a7ce99b314878d8d77fa8a96;p=libevent return error code when kqueue fails on a specific fd; from alexander von gernler. svn:r145 --- 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); }