summaryrefslogtreecommitdiff
path: root/lib/tevent/tevent_util.h
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2011-08-11 12:30:48 +0200
committerSimo Sorce <idra@samba.org>2011-08-11 14:38:53 -0400
commit158b208dfd75c04698f9f9196161322b16a020a2 (patch)
treea81837ad3fe0d4c707e16c080f782b0ca441b576 /lib/tevent/tevent_util.h
parentd52343a9673a55e0e11d35f904808c0007405fa4 (diff)
downloadsamba-158b208dfd75c04698f9f9196161322b16a020a2.tar.gz
samba-158b208dfd75c04698f9f9196161322b16a020a2.tar.bz2
samba-158b208dfd75c04698f9f9196161322b16a020a2.zip
tevent: Set FD_CLOEXEC on epoll handle
If an application using libtevent starts a new process the epoll file descriptor is leaked to the new process if the event context is not freed explicitly. By setting FD_CLOEXEC this is not needed anymore. Signed-off-by: Simo Sorce <idra@samba.org>
Diffstat (limited to 'lib/tevent/tevent_util.h')
-rw-r--r--lib/tevent/tevent_util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tevent/tevent_util.h b/lib/tevent/tevent_util.h
index 46a4506dac..311be604a0 100644
--- a/lib/tevent/tevent_util.h
+++ b/lib/tevent/tevent_util.h
@@ -183,6 +183,7 @@ do { \
const char **ev_str_list_add(const char **list, const char *s);
int ev_set_blocking(int fd, bool set);
size_t ev_str_list_length(const char **list);
+bool ev_set_close_on_exec(int fd);
/* Defined here so we can build against older talloc versions that don't
* have this define yet. */