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)
committerRalph Boehme <slow@samba.org>
Sat, 16 Sep 2017 21:50:27 +0000 (23:50 +0200)
commit563bbb9c24d1d0bcc64530a6635b8b82d1ebb24d
tree9e43e62eb9cb13449e290c3718c545550bb238ea
parent6c36ea0737ae12fc97e4a024588e6a3845caf329
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
lib/util/util_runcmd.c