diff options
author | Igor Sysoev <igor@sysoev.ru> | 2018-02-12 20:09:13 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2018-02-12 20:09:13 +0300 |
commit | 5365dadb4b57ebf05152fb7bb521c435343c1471 (patch) | |
tree | b894f339be79546bee934f503b6f7230a911eec0 | |
parent | e2c3fa630469bf006de5a983910e391c5889430d (diff) | |
download | unit-5365dadb4b57ebf05152fb7bb521c435343c1471.tar.gz unit-5365dadb4b57ebf05152fb7bb521c435343c1471.tar.bz2 |
signalfd() notification should be ignored if nothing was read.
-rw-r--r-- | src/nxt_epoll_engine.c | 1 |
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); |