summaryrefslogtreecommitdiff
path: root/ev_epoll.c
diff options
context:
space:
mode:
authorroot <root>2011-01-08 10:25:16 +0000
committerroot <root>2011-01-08 10:25:16 +0000
commiteeb9e8c91f19ad2118c3966eddc3368c932012be (patch)
treeba153b7876907e36abe235d87fa6d612d59ca9a6 /ev_epoll.c
parentaff093a7b45a52ce278f261e57d7105c73d5e1e7 (diff)
*** empty log message ***
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 */