diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index e12413643..63ec56984 100644 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -506,7 +506,7 @@ function start_stub() { } function kill_stub() { - kill $stubpid + kill $1 $stubpid wait $stubpid rm -f /var/run/spdk_stub0 # Re-enable ASLR now that we are done with multi-process testing diff --git a/test/nvme/nvme.sh b/test/nvme/nvme.sh index c86570afd..9264886b8 100755 --- a/test/nvme/nvme.sh +++ b/test/nvme/nvme.sh @@ -89,7 +89,7 @@ fi if [ `uname` = Linux ]; then start_stub "-s 4096 -i 0 -m 0xF" - trap "kill_stub; exit 1" SIGINT SIGTERM EXIT + trap "kill_stub -9; exit 1" SIGINT SIGTERM EXIT fi if [ $RUN_NIGHTLY -eq 1 ]; then