From e703c034cbc7c8a58cee77db6c7e81d63f286ad5 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Thu, 9 Apr 2020 02:00:17 +0300 Subject: [PATCH] epoll: handle EV_ET for EV_CLOSED too --- epoll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epoll.c b/epoll.c index 1d4393e6ca..299e3d355c 100644 --- a/epoll.c +++ b/epoll.c @@ -282,7 +282,7 @@ epoll_apply_one_change(struct event_base *base, return 0; } - if ((ch->read_change|ch->write_change) & EV_CHANGE_ET) + if ((ch->read_change|ch->write_change|ch->close_change) & EV_CHANGE_ET) events |= EPOLLET; memset(&epev, 0, sizeof(epev));