]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tests: use kill -0 to check process existence 2750/head
authorLoic Dachary <loic-201408@dachary.org>
Wed, 22 Oct 2014 03:05:45 +0000 (20:05 -0700)
committerLoic Dachary <ldachary@redhat.com>
Sun, 9 Nov 2014 10:59:51 +0000 (11:59 +0100)
commita0c1f220c7c6ce28e198536dc6d1c960544fb6f1
treebd2f596fd7956c2dae87b5a1f2e12fc0b3fea0d0
parent17f5c3659c632b4f329d2e1a49d431a089e7735d
tests: use kill -0 to check process existence

When killing a daemon, instead of using kill -9 to check the process was
terminated, use kill -0. Should the pid of the process be reused
immediately after, it would be wrong to kill the new process. Worst case
scenario the kill_daemon function returns before the process is
confirmed to be killed but this is not treated as an error and is
unlikely to cause any problem.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
src/test/mon/mon-test-helpers.sh