missing EPOLLRDHUP check since event loop rework

This commit is contained in:
Joris Vink 2018-10-10 14:33:26 +02:00
parent c463ecb3cb
commit c12f296743
1 changed files with 3 additions and 1 deletions

View File

@ -124,7 +124,9 @@ kore_platform_event_wait(u_int64_t timer)
if (events[i].events & EPOLLOUT)
evt->flags |= KORE_EVENT_WRITE;
if (events[i].events & EPOLLERR|| events[i].events & EPOLLHUP)
if (events[i].events & EPOLLERR ||
events[i].events & EPOLLHUP ||
events[i].events & EPOLLRDHUP)
r = 1;
evt->handle(events[i].data.ptr, r);