summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_epoll_engine.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2018-02-12 20:09:13 +0300
committerIgor Sysoev <igor@sysoev.ru>2018-02-12 20:09:13 +0300
commit5365dadb4b57ebf05152fb7bb521c435343c1471 (patch)
treeb894f339be79546bee934f503b6f7230a911eec0 /src/nxt_epoll_engine.c
parente2c3fa630469bf006de5a983910e391c5889430d (diff)
downloadunit-5365dadb4b57ebf05152fb7bb521c435343c1471.tar.gz
unit-5365dadb4b57ebf05152fb7bb521c435343c1471.tar.bz2
signalfd() notification should be ignored if nothing was read.
Diffstat (limited to '')
-rw-r--r--src/nxt_epoll_engine.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_epoll_engine.c b/src/nxt_epoll_engine.c
index c3d629a6..c70daa99 100644
--- a/src/nxt_epoll_engine.c
+++ b/src/nxt_epoll_engine.c
@@ -749,6 +749,7 @@ nxt_epoll_signalfd_handler(nxt_task_t *task, void *obj, void *data)
if (n != sizeof(struct signalfd_siginfo)) {
nxt_log(task, NXT_LOG_CRIT, "read signalfd(%d) failed %E",
ev->fd, nxt_errno);
+ return;
}
nxt_debug(task, "signalfd(%d) signo:%d", ev->fd, sfd.ssi_signo);