From e8ff2e848e6f40f5888bd4830fc7a0c734c22367 Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Sun, 14 Aug 2011 17:44:02 -0700 Subject: [PATCH] Fix bug where we crash if our non -9 kill fails. BUG=chromium-os:19154 TEST=Ran cros_stop_vm Change-Id: I7150481649086e535469009c207c6fee7bb1990c Reviewed-on: http://gerrit.chromium.org/gerrit/5972 Reviewed-by: Chris Sosa Tested-by: Chris Sosa --- lib/cros_vm_lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cros_vm_lib.sh b/lib/cros_vm_lib.sh index bbbf338bb4..248a9112d8 100644 --- a/lib/cros_vm_lib.sh +++ b/lib/cros_vm_lib.sh @@ -128,7 +128,7 @@ function stop_kvm() { echo "Stopping the KVM instance" >&2 local pid=$(get_pid) if [ -n "${pid}" ]; then - blocking_kill ${pid} 1 16 || blocking_kill 9 1 + blocking_kill ${pid} 1 16 || blocking_kill ${pid} 9 1 sudo rm "${KVM_PID_FILE}" else echo "No kvm pid found to stop." >&2