tevent: Set FD_CLOEXEC on epoll handle
authorSumit Bose <sbose@redhat.com>
Thu, 11 Aug 2011 10:30:48 +0000 (12:30 +0200)
committerSimo Sorce <idra@samba.org>
Thu, 11 Aug 2011 18:38:53 +0000 (14:38 -0400)
commit158b208dfd75c04698f9f9196161322b16a020a2
treea81837ad3fe0d4c707e16c080f782b0ca441b576
parentd52343a9673a55e0e11d35f904808c0007405fa4
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>
lib/tevent/tevent_epoll.c
lib/tevent/tevent_standard.c
lib/tevent/tevent_util.c
lib/tevent/tevent_util.h