Skip to content

Commit 5bf4300

Browse files
lgrahlrichaas
authored andcommitted
Raise FD_EXCEPT on EPOLLHUP (fixes closed pipes) (#159)
1 parent 3573d66 commit 5bf4300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ static int fd_poll(struct re *re)
784784
flags |= FD_READ;
785785
if (re->events[i].events & EPOLLOUT)
786786
flags |= FD_WRITE;
787-
if (re->events[i].events & EPOLLERR)
787+
if (re->events[i].events & (EPOLLERR|EPOLLHUP))
788788
flags |= FD_EXCEPT;
789789

790790
if (!flags) {

0 commit comments

Comments
 (0)