selftest: Rework child process cleanup
authorAndrew Bartlett <abartlet@samba.org>
Wed, 30 Nov 2016 01:18:46 +0000 (14:18 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 1 Dec 2016 04:54:21 +0000 (05:54 +0100)
commit07df896a34bc0f776fe98ac16fc5dac38e494d92
tree67ce323ffa04c599241874ef044a006d1c1c3974
parente952a127d676c308eab7b9dd356a36766749ac06
selftest: Rework child process cleanup

We now:
 - call gdb_backtrace on the stuck pid to determine why it is stuck
 - cleanup faster as we catch the process exit
   (by not waiting until 1 second after the exit for waitpid() to return -1)

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
selftest/target/Samba4.pm