ctdb-tests: Make sure child processes are waited on after termination
authorAmitay Isaacs <amitay@gmail.com>
Wed, 22 Nov 2017 00:08:14 +0000 (11:08 +1100)
committerMartin Schwenke <martins@samba.org>
Fri, 24 Nov 2017 10:49:19 +0000 (11:49 +0100)
commitc19fc7c9cc94dcf708a3ad0e417304a9d5c965ff
treea501980601ee526c733b20a0653ecb7ed8a3cf4e
parent926e7a7cb46ef2b243f1247eee48c87ea546849b
ctdb-tests: Make sure child processes are waited on after termination

Looks like the if a process holding fcntl lock (on pid file) is killed,
then the lock is not released till the process is reaped using either
wait() or waitpid().

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/tests/src/sock_daemon_test.c