mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-15 09:53:44 -06:00
lxc: return -1 if failed to kill lxc process
We missed a return when virProcessKillPainfully failed to kill lxc process Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
parent
fca4f23340
commit
5ed324a205
@ -711,7 +711,11 @@ int virLXCProcessStop(virLXCDriverPtr driver,
|
||||
} else {
|
||||
/* If cgroup doesn't exist, just try cleaning up the
|
||||
* libvirt_lxc process */
|
||||
virProcessKillPainfully(vm->pid, true);
|
||||
if (virProcessKillPainfully(vm->pid, true) < 0) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("Processes %d refused to die"), (int)vm->pid);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
virLXCProcessCleanup(driver, vm, reason);
|
||||
|
Loading…
Reference in New Issue
Block a user