mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: hide error output
Hide error message if pid is already away.
This commit is contained in:
parent
930f0aae84
commit
5d4695569d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user