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:
parent
f0c2093477
commit
e7885a9a05
@ -116,8 +116,8 @@ function spdk_vhost_kill()
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if /bin/kill -0 $vhost_pid; then
|
if /bin/kill -0 $vhost_pid; then
|
||||||
echo "ERROR: vhost was NOT killed - sending SIGKILL"
|
echo "ERROR: vhost was NOT killed - sending SIGABRT"
|
||||||
/bin/kill -KILL $vhost_pid
|
/bin/kill -ABRT $vhost_pid
|
||||||
rm $vhost_pid_file
|
rm $vhost_pid_file
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user