summaryrefslogtreecommitdiff
path: root/ev_epoll.c
diff options
context:
space:
mode:
Diffstat (limited to 'ev_epoll.c')
-rw-r--r--ev_epoll.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ev_epoll.c b/ev_epoll.c
index fda636d..eb22ad8 100644
--- a/ev_epoll.c
+++ b/ev_epoll.c
@@ -117,6 +117,8 @@ epoll_modify (EV_P_ int fd, int oev, int nev)
}
else if (expect_true (errno == EPERM))
{
+ /* EPERM means the fd is always ready, but epoll is too snobbish */
+ /* to handle it, unlike select or poll. */
anfds [fd].emask = EV_EMASK_EPERM;
/* add fd to epoll_eperms, if not already inside */