1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

epoll: use EPOLLHUP

Read data when EPOLLIN or EPOLLHUP events occur.
This commit is contained in:
Witold Filipczyk 2007-01-08 20:28:22 +01:00 committed by Witold Filipczyk
parent 753e503e26
commit 678d52551d

View File

@ -251,7 +251,7 @@ select_loop(void (*init)(void))
for (i = 0; i < n; i++) {
int fd = events[i].data.fd;
if ((events[i].events & EPOLLIN)
if ((events[i].events & (EPOLLIN | EPOLLHUP))
&& threads[fd].read_func) {
threads[fd].read_func(threads[fd].data);
check_bottom_halves();