mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
Don't fail hard when we can't connect to the monitor
As of 1a50ba2cb07d8bb2aa724062889deb9efd7ad9e9 we fail to connect to the monitor instead of getting an exit status != 0 from qemu itself. This breaks capabilities probing for the non QMP case.
This commit is contained in:
parent
5049b53689
commit
d521119c09
@ -2345,8 +2345,10 @@ qemuCapsInitQMP(qemuCapsPtr caps,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (!(mon = qemuMonitorOpen(NULL, &config, true, &callbacks)))
|
||||
if (!(mon = qemuMonitorOpen(NULL, &config, true, &callbacks))) {
|
||||
ret = 0;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
qemuMonitorLock(mon);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user