1
0
mirror of https://git.kore.io/kore.git synced 2024-11-18 16:08:29 +01:00

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

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);