diff options
author | Igor Sysoev <igor@sysoev.ru> | 2018-10-22 17:43:28 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2018-10-22 17:43:28 +0300 |
commit | 50dd54877dc88ade87f4259a74918ddfa4498880 (patch) | |
tree | f6b41c88b0215bd899c2e3a182288a0f6124c1ba /src/nxt_event_engine.h | |
parent | deeb276d2386b90e695fc0650bfb7e08806264ee (diff) | |
download | unit-50dd54877dc88ade87f4259a74918ddfa4498880.tar.gz unit-50dd54877dc88ade87f4259a74918ddfa4498880.tar.bz2 |
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).
Diffstat (limited to 'src/nxt_event_engine.h')
-rw-r--r-- | src/nxt_event_engine.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_event_engine.h b/src/nxt_event_engine.h index 7a7149e6..365d9e89 100644 --- a/src/nxt_event_engine.h +++ b/src/nxt_event_engine.h @@ -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; |