summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */