mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-04-01 20:05:19 +00:00
qemu: make sure capability probing process can start
When daemon is killed right in the middle of probing a qemu binary for its capabilities, the qemu process is left running. Next time the daemon is starting, it cannot start the probing qemu process because the one that's already running does have the pidfile flock()'d. Reported-by: Wang Yufei <james.wangyufei@huawei.com> Signed-off-by: Martin Kletzander <mkletzan@redhat.com> (cherry picked from commit 0ed1b55b20300e0ea53925349d918935c2114bf2)
This commit is contained in:
parent
595a1c8836
commit
963d0bb5e6
@ -3241,6 +3241,8 @@ virQEMUCapsInitQMP(virQEMUCapsPtr qemuCaps,
|
||||
config.data.nix.path = monpath;
|
||||
config.data.nix.listen = false;
|
||||
|
||||
virPidFileForceCleanupPath(pidfile);
|
||||
|
||||
VIR_DEBUG("Try to get caps via QMP qemuCaps=%p", qemuCaps);
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user