Improved epoll failures handling.

epoll changes are committed to the kernel before epoll_wait() or
on changes array overflow.  In the latter case if there are errors
epoll_wait() timeout was not set to zero.

This commit is related to #173 issue on GitHub.
Thanks to 洪志道 (Hong Zhi Dao).
This commit is contained in:
Igor Sysoev
2018-10-22 17:43:28 +03:00
parent deeb276d23
commit 50dd54877d
2 changed files with 13 additions and 12 deletions

View File

@@ -202,6 +202,8 @@ typedef struct {
nxt_uint_t mchanges;
int mevents;
uint8_t error; /* 1 bit */
nxt_epoll_change_t *changes;
struct epoll_event *events;