From 205d5b7d8cff98131c31a315c656a5df3f67484c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 13 Jun 2023 03:39:01 +0200 Subject: event_loop: support more event types --- src/event_loop.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/event_loop.c') diff --git a/src/event_loop.c b/src/event_loop.c index b26d424..de7fbf1 100644 --- a/src/event_loop.c +++ b/src/event_loop.c @@ -153,6 +153,10 @@ static char *events_to_string(short events) ptr = append_event(buf, sz, ptr, "POLLERR"); if (events & POLLHUP) ptr = append_event(buf, sz, ptr, "POLLHUP"); + if (events & POLLRDHUP) + ptr = append_event(buf, sz, ptr, "POLLRDHUP"); + if (events & POLLPRI) + ptr = append_event(buf, sz, ptr, "POLLPRI"); if (events & POLLIN) ptr = append_event(buf, sz, ptr, "POLLIN"); if (events & POLLOUT) -- cgit v1.2.3