summaryrefslogtreecommitdiff
path: root/ev_epoll.c
diff options
context:
space:
mode:
authorroot <root>2010-10-22 10:25:03 +0000
committerroot <root>2010-10-22 10:25:03 +0000
commit27b300e47d073c7dddcff5264cd5d6c16085cb15 (patch)
treeeed003e9a5bc04dcf94343beec7c6510b05b1fcc /ev_epoll.c
parent84cd5c8b8c9bab9e2e9ad5a69cfc2818abc3ae0f (diff)
*** empty log message ***
Diffstat (limited to 'ev_epoll.c')
-rw-r--r--ev_epoll.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ev_epoll.c b/ev_epoll.c
index 67a488b..3dfc429 100644
--- a/ev_epoll.c
+++ b/ev_epoll.c
@@ -150,6 +150,7 @@ epoll_poll (EV_P_ ev_tstamp timeout)
| (ev->events & (EPOLLIN | EPOLLERR | EPOLLHUP) ? EV_READ : 0);
/* check for spurious notification */
+ /* we assume that fd is always in range, as we never shrink the anfds arraay */
if (expect_false ((uint32_t)anfds [fd].egen != (uint32_t)(ev->data.u64 >> 32)))
{
/* recreate kernel state */