diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-01-03 11:34:37 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-01-03 19:58:54 +0100 |
commit | 67810019a0bc3ab2d02f9506a3f93ee1fa3062ca (patch) | |
tree | a8d9774aa86dd1a1d58c1d06722e4deb35ce1bb5 /lib/tevent/tevent_select.c | |
parent | 2c8a10fe88a94e8d591d920487106f27b4e6f020 (diff) | |
download | samba-67810019a0bc3ab2d02f9506a3f93ee1fa3062ca.tar.gz samba-67810019a0bc3ab2d02f9506a3f93ee1fa3062ca.tar.xz samba-67810019a0bc3ab2d02f9506a3f93ee1fa3062ca.zip |
tevent: remove TEVENT_FD_AUTOCLOSE feature
TEVENT_FD_AUTOCLOSE adds a dependency to SOCKET_WRAPPER,
which is bad. Callers should use tevent_fd_set_close_fn() now.
metze
Diffstat (limited to 'lib/tevent/tevent_select.c')
-rw-r--r-- | lib/tevent/tevent_select.c | 3 |
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; |