1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +03:00

tests: check for clvmd process entry

Instead of checking just for pid file - rather check
for process  - since there could be slight race, the
pid file is gone, but process still exists.
This commit is contained in:
Zdenek Kabelac 2015-05-04 10:16:33 +02:00
parent 3f05e662bb
commit c90ee0414d

View File

@ -69,7 +69,7 @@ if test -e LOCAL_CLVMD ; then
kill $(< LOCAL_CLVMD)
for i in $(seq 1 100) ; do
test $i -eq 100 && die "Shutdown of clvmd is too slow."
test -e "$CLVMD_PIDFILE" || break
pgrep clvmd || break
sleep .1
done # wait for the pid removal
aux prepare_clvmd