Commit 4323860c authored by Mike Hibler's avatar Mike Hibler
Browse files

If the "xl destroy" times out, we also need to kill the qemu.

parent 864c89c5
...@@ -3147,8 +3147,9 @@ sub vnodeHalt($$$$) ...@@ -3147,8 +3147,9 @@ sub vnodeHalt($$$$)
} }
# #
# XXX check for left over qemu and kill it. # XXX check for left over qemu and kill it.
# XXX we should probably do this all the time.
# #
elsif ($domID) { if ($domID && ($stat == 0 || $stat == 15)) {
if (!domainGone($domID, 3)) { if (!domainGone($domID, 3)) {
print STDERR "$vnode_id: HVM (domID $domID): killing orphaned qemu process\n"; print STDERR "$vnode_id: HVM (domID $domID): killing orphaned qemu process\n";
if (mysystem2("pkill -f 'qemu.* -xen-domid $domID '")) { if (mysystem2("pkill -f 'qemu.* -xen-domid $domID '")) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment