selftest: close stdin and wait with waitpid() for a safer exit
commit5d4144a82674467bccbfe30f42382ed0905026d0
authorAndrew Bartlett <abartlet@samba.org>
Fri, 2 Mar 2012 07:20:45 +0000 (2 18:20 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 2 Mar 2012 11:30:05 +0000 (2 12:30 +0100)
tree963b9d0017112adb9f6f682435157f66ad8a5b4e
parent0d94d681c4a829b2a0bdadf5800c11c05edd2fa4
selftest: close stdin and wait with waitpid() for a safer exit

This avoids timelimit sending kill -9 after 1 second, which may
disrupt the writing of gcov data.

Andrew Bartlett
selftest/target/Samba3.pm
selftest/target/Samba4.pm