lib/util: only close the event_fd in tfork if the caller didn't call tfork_event_fd()
authorRalph Boehme <slow@samba.org>
Sat, 16 Sep 2017 08:22:31 +0000 (01:22 -0700)
committerRalph Boehme <slow@samba.org>
Sat, 16 Sep 2017 17:53:23 +0000 (19:53 +0200)
commit6c36ea0737ae12fc97e4a024588e6a3845caf329
tree53d0a3b06edee154628ac4116fe75e3eb7ea377e
parentf6a40ff2a1c133b6c30cf3ce29d7bb3ea005e3c8
lib/util: only close the event_fd in tfork if the caller didn't call tfork_event_fd()

Make closing of the event_fd the global responsibility of the
parent process if it called tfork_event_fd().

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13037

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/util/tfork.c
lib/util/tfork.h
selftest/knownfail.d/tfork [deleted file]