return error code when kqueue fails on a specific fd; from alexander von

gernler.


svn:r145
This commit is contained in:
Niels Provos 2005-04-07 03:35:56 +00:00
parent 8f0541af3e
commit d47798be5a

View File

@ -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);
}