util_runcmd: Free the fde in event handler.
authorGary Lockyer <gary@catalyst.net.nz>
Fri, 8 Sep 2017 02:03:25 +0000 (14:03 +1200)
committerStefan Metzmacher <metze@samba.org>
Sun, 17 Sep 2017 11:56:23 +0000 (13:56 +0200)
commitd02af0b151affcd9c63ab1701f8025f4927437f9
treeebcb12001c5f94e3726f5ffdeea698ccb0638682
parent21624ed39eb0aecea65aee79df3f5b286001edd0
util_runcmd: Free the fde in event handler.

Free the fde in the event handler to prevent the event triggering again
While not strictly necessary in this case, this code serves as an
example of the usage of tfork.

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

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Sat Sep 16 23:50:27 CEST 2017 on sn-devel-144

(cherry picked from commit 563bbb9c24d1d0bcc64530a6635b8b82d1ebb24d)

Autobuild-User(v4-7-test): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(v4-7-test): Sun Sep 17 13:56:23 CEST 2017 on sn-devel-144
lib/util/util_runcmd.c