diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index b6269f25c..f72cb7219 100755 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -338,9 +338,11 @@ function killprocess() { exit 1 fi - echo "killing process with pid $1" - kill $1 - wait $1 + if kill -0 $1; then + echo "killing process with pid $1" + kill $1 + wait $1 + fi } function iscsicleanup() {