From e7885a9a0556db3823839d3fae081e151b2c372a Mon Sep 17 00:00:00 2001 From: Dariusz Stojaczyk Date: Wed, 3 Jan 2018 16:30:57 +0100 Subject: [PATCH] test/vhost: send SIGABRT on vhost shutdown failure There's a bug lurking somewhere in vhost shutdown path causing intermittent failures. Sending a SIGABRT instead of SIGKILL will make the process dump core. We could use it to speed up debugging. Change-Id: I0825deecbf26e32ff073fdbcdfe42640c52453b9 Signed-off-by: Dariusz Stojaczyk Reviewed-on: https://review.gerrithub.io/393477 Tested-by: SPDK Automated Test System Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- test/vhost/common/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/vhost/common/common.sh b/test/vhost/common/common.sh index ddbc600de..3c88c59c1 100644 --- a/test/vhost/common/common.sh +++ b/test/vhost/common/common.sh @@ -116,8 +116,8 @@ function spdk_vhost_kill() fi done if /bin/kill -0 $vhost_pid; then - echo "ERROR: vhost was NOT killed - sending SIGKILL" - /bin/kill -KILL $vhost_pid + echo "ERROR: vhost was NOT killed - sending SIGABRT" + /bin/kill -ABRT $vhost_pid rm $vhost_pid_file return 1 fi