Set FD_CLOEXEC for epoll file descriptors
authorSumit Bose <sbose@redhat.com>
Wed, 10 Aug 2011 15:14:40 +0000 (17:14 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 19 Aug 2013 15:03:40 +0000 (17:03 +0200)
commit00f53a9a8f440be0bc993b1800383cd930fd273e
treec3cdd1a674315d3c3fc90016d6caecabe1245d88
parent6bfbc0aca625f0fb59df96beaee1e4c26178dc12
Set FD_CLOEXEC for epoll file descriptors

Don't leak file descriptors.
This showed up as selinux AVCs on RHEL:
https://bugzilla.redhat.com/show_bug.cgi?id=728545

Reviewed-by: Michael Adam <obnox@samba.org>
lib/events/events_standard.c