From 50dd54877dc88ade87f4259a74918ddfa4498880 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 22 Oct 2018 17:43:28 +0300 Subject: Improved epoll failures handling. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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). --- src/nxt_event_engine.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nxt_event_engine.h') 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; -- cgit