selftest: Close STDIN_PIPE's write end for skipped daemons
authorVolker Lendecke <vl@samba.org>
Tue, 28 Jan 2020 13:41:11 +0000 (14:41 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 29 Jan 2020 09:36:27 +0000 (09:36 +0000)
commit5bc5b681c037ed1e8e119b7c062ab397bafb9571
tree403da979dc9d01dc9188436c1f0b4ad92cadcc85
parent2d5b7c9a50d1514cf6e5aa3f1cc4f4b5c3c6ff22
selftest: Close STDIN_PIPE's write end for skipped daemons

Without this, any environment that skips any daemon will not shut down
properly. If a copy of a pipe's write end remains, closing one of them
won't cause the read end to be readable, i.e. the daemons waiting for
that won't exit properly.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/target/Samba.pm