1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

tests: hide error output

Hide error message if pid is already away.
This commit is contained in:
Zdenek Kabelac 2015-04-15 13:10:33 +02:00
parent 930f0aae84
commit 5d4695569d

View File

@ -218,7 +218,7 @@ kill_sleep_kill_() {
slow=$2
if test -s $pidfile ; then
pid=$(< $pidfile)
kill -TERM $pid || return 0
kill -TERM $pid 2>/dev/null || return 0
if test $slow -eq 0 ; then sleep .1 ; else sleep 1 ; fi
kill -KILL $pid 2>/dev/null || true
wait=0