summaryrefslogtreecommitdiff
path: root/lib/tevent/tevent_standard.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tevent/tevent_standard.c')
-rw-r--r--lib/tevent/tevent_standard.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/tevent/tevent_standard.c b/lib/tevent/tevent_standard.c
index e7f1e5f970..145f510533 100644
--- a/lib/tevent/tevent_standard.c
+++ b/lib/tevent/tevent_standard.c
@@ -394,9 +394,6 @@ static int std_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;