/*
+ * libev epoll fd activity backend
+ *
* Copyright (c) 2007 Marc Alexander Lehmann <libev@schmorp.de>
* All rights reserved.
*
/* re-register interest in fds */
for (fd = 0; fd < anfdmax; ++fd)
- if (anfds [fd].events && !(anfds [fd].events & EV_REIFY))//D
+ if (anfds [fd].events)//D
epoll_modify (fd, EV_NONE, anfds [fd].events);
}
);
/* if the receive array was full, increase its size */
- if (eventcnt == eventmax)
+ if (expect_false (eventcnt == eventmax))
{
free (events);
- eventmax += eventmax >> 1;
+ eventmax = array_roundsize (events, eventmax << 1);
events = malloc (sizeof (struct epoll_event) * eventmax);
}
}