mirror of https://gitee.com/openkylin/libvirt.git
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;
|
||||
}
|
||||
|
||||
if (!(mon = qemuMonitorOpen(NULL, &config, true, &callbacks)))
|
||||
if (!(mon = qemuMonitorOpen(NULL, &config, true, &callbacks))) {
|
||||
ret = 0;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
qemuMonitorLock(mon);
|
||||
|
||||
|
|
Loading…
Reference in New Issue