Skip to content

Commit

Permalink
epoll: handle EV_ET for EV_CLOSED too
Browse files Browse the repository at this point in the history
  • Loading branch information
azat committed May 4, 2020
1 parent ecb67f6 commit e703c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion epoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit e703c03

Please sign in to comment.