diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-06-13 03:39:01 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-06-13 03:39:01 +0200 |
commit | 205d5b7d8cff98131c31a315c656a5df3f67484c (patch) | |
tree | 4fa059c990bdcf73f567939d78eefbc153eef843 | |
parent | event_loop: add event_loop_add_once (diff) | |
download | cimple-205d5b7d8cff98131c31a315c656a5df3f67484c.tar.gz cimple-205d5b7d8cff98131c31a315c656a5df3f67484c.zip |
event_loop: support more event types
-rw-r--r-- | src/event_loop.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) |