From d8512f193ce3e94775ca3862789ea8bfa9efa998 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Mon, 23 Dec 2013 13:10:18 +0100 Subject: [PATCH] mon: use kill instead of pkill in osd-pool-create The --pidfile option of pkill is not supported by all versions. Use kill instead for compatibility. Instead of looping on : loop on sleep 1 so an inifinite loop does is slower at filling the disk. Signed-off-by: Loic Dachary --- src/test/mon/osd-pool-create.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/mon/osd-pool-create.sh b/src/test/mon/osd-pool-create.sh index bb2b0a0e7a7da..9f58f00bd818d 100755 --- a/src/test/mon/osd-pool-create.sh +++ b/src/test/mon/osd-pool-create.sh @@ -40,7 +40,7 @@ function run_mon() { } function kill_mon() { - while pkill --pidfile $DIR/pidfile ; do : ; done + while [ -f $DIR/pidfile ] && kill $(cat $DIR/pidfile) ; do sleep 1 ; done rm -fr $DIR/store.db } -- 2.39.5