summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2019-10-03 16:13:13 +0300
committerIgor Sysoev <igor@sysoev.ru>2019-10-03 16:13:13 +0300
commitaa910b276ebb06da216232978c295d80359a5316 (patch)
tree9cab36d2a6aff56db9cef4a129b7f59a368e8d7a /src
parentf5e86ad8fc8f3d6e3669bc1767f0ee4554a9d6d7 (diff)
downloadunit-aa910b276ebb06da216232978c295d80359a5316.tar.gz
unit-aa910b276ebb06da216232978c295d80359a5316.tar.bz2
Ignoring EINTR error in kqueue.
Diffstat (limited to 'src')
-rw-r--r--src/nxt_kqueue_engine.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nxt_kqueue_engine.c b/src/nxt_kqueue_engine.c
index 0212b331..9edbc346 100644
--- a/src/nxt_kqueue_engine.c
+++ b/src/nxt_kqueue_engine.c
@@ -705,7 +705,10 @@ nxt_kqueue_poll(nxt_event_engine_t *engine, nxt_msec_t timeout)
nxt_log(&engine->task, level, "kevent(%d) failed %E",
engine->u.kqueue.fd, err);
- nxt_kqueue_error(engine);
+ if (err != NXT_EINTR) {
+ nxt_kqueue_error(engine);
+ }
+
return;
}