mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
epoll: use EPOLLHUP
Read data when EPOLLIN or EPOLLHUP events occur.
This commit is contained in:
parent
753e503e26
commit
678d52551d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user