From 5365dadb4b57ebf05152fb7bb521c435343c1471 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 12 Feb 2018 20:09:13 +0300 Subject: signalfd() notification should be ignored if nothing was read. --- src/nxt_epoll_engine.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nxt_epoll_engine.c') 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); -- cgit