From d47798be5a106177a7ce99b314878d8d77fa8a96 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Thu, 7 Apr 2005 03:35:56 +0000 Subject: [PATCH] return error code when kqueue fails on a specific fd; from alexander von gernler. svn:r145 --- kqueue.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.50.1