summaryrefslogtreecommitdiff
path: root/source4/lib/events/events_standard.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/events/events_standard.c')
-rw-r--r--source4/lib/events/events_standard.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/events/events_standard.c b/source4/lib/events/events_standard.c
index fd4b88008b..8761b12873 100644
--- a/source4/lib/events/events_standard.c
+++ b/source4/lib/events/events_standard.c
@@ -379,6 +379,8 @@ static int std_event_fd_destructor(struct fd_event *fde)
struct std_event_context *std_ev = talloc_get_type(ev->additional_data,
struct std_event_context);
+ epoll_check_reopen(std_ev);
+
if (std_ev->maxfd == fde->fd) {
std_ev->maxfd = EVENT_INVALID_MAXFD;
}