diff options
-rw-r--r-- | source4/lib/events/events_standard.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/events/events_standard.c b/source4/lib/events/events_standard.c index bd06cbfe96..abf17dd710 100644 --- a/source4/lib/events/events_standard.c +++ b/source4/lib/events/events_standard.c @@ -92,8 +92,8 @@ static void epoll_fallback_to_select(struct std_event_context *std_ev, const cha static uint32_t epoll_map_flags(uint16_t flags) { uint32_t ret = 0; - if (flags & EVENT_FD_READ) ret |= EPOLLIN; - if (flags & EVENT_FD_WRITE) ret |= EPOLLOUT; + if (flags & EVENT_FD_READ) ret |= (EPOLLIN | EPOLLERR | EPOLLHUP); + if (flags & EVENT_FD_WRITE) ret |= (EPOLLOUT | EPOLLERR | EPOLLHUP); return ret; } |