Raise FD_EXCEPT on EPOLLHUP (fixes closed pipes) (#159)
This commit is contained in:
parent
3573d66a45
commit
5bf4300459
1 changed files with 1 additions and 1 deletions
|
@ -784,7 +784,7 @@ static int fd_poll(struct re *re)
|
|||
flags |= FD_READ;
|
||||
if (re->events[i].events & EPOLLOUT)
|
||||
flags |= FD_WRITE;
|
||||
if (re->events[i].events & EPOLLERR)
|
||||
if (re->events[i].events & (EPOLLERR|EPOLLHUP))
|
||||
flags |= FD_EXCEPT;
|
||||
|
||||
if (!flags) {
|
||||
|
|
Loading…
Add table
Reference in a new issue