mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Don't fail hard when we can't connect to the monitor
As of 1a50ba2cb0
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;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(mon = qemuMonitorOpen(NULL, &config, true, &callbacks)))
|
if (!(mon = qemuMonitorOpen(NULL, &config, true, &callbacks))) {
|
||||||
|
ret = 0;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
qemuMonitorLock(mon);
|
qemuMonitorLock(mon);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user