mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Merge remote-tracking branch 'origin/patches-2.0'
This commit is contained in:
commit
e465623a9c
11
kqueue.c
11
kqueue.c
@ -328,10 +328,15 @@ kq_dispatch(struct event_base *base, struct timeval *tv)
|
|||||||
case EINVAL:
|
case EINVAL:
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Can occur on a delete if the fd is closed. Can
|
/* Can occur on a delete if the fd is closed. */
|
||||||
* occur on an add if the fd was one side of a pipe,
|
|
||||||
* and the other side was closed. */
|
|
||||||
case EBADF:
|
case EBADF:
|
||||||
|
/* XXXX On NetBSD, we can also get EBADF if we
|
||||||
|
* try to add the write side of a pipe, but
|
||||||
|
* the read side has already been closed.
|
||||||
|
* Other BSDs call this situation 'EPIPE'. It
|
||||||
|
* would be good if we had a way to report
|
||||||
|
* this situation. */
|
||||||
|
continue;
|
||||||
/* These two can occur on an add if the fd was one side
|
/* These two can occur on an add if the fd was one side
|
||||||
* of a pipe, and the other side was closed. */
|
* of a pipe, and the other side was closed. */
|
||||||
case EPERM:
|
case EPERM:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user