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 <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/393477
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Dariusz Stojaczyk 2018-01-03 16:30:57 +01:00 committed by Jim Harris
parent f0c2093477
commit e7885a9a05

View File

@ -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