summaryrefslogtreecommitdiff
path: root/lib/tevent/tevent_select.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tevent/tevent_select.c')
-rw-r--r--lib/tevent/tevent_select.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/tevent/tevent_select.c b/lib/tevent/tevent_select.c
index cca771ce85..d94e473db8 100644
--- a/lib/tevent/tevent_select.c
+++ b/lib/tevent/tevent_select.c
@@ -106,9 +106,6 @@ static int select_event_fd_destructor(struct tevent_fd *fde)
if (fde->close_fn) {
fde->close_fn(ev, fde, fde->fd, fde->private_data);
fde->fd = -1;
- } else if (fde->flags & TEVENT_FD_AUTOCLOSE) {
- close(fde->fd);
- fde->fd = -1;
}
return 0;