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:
Guido Günther 2012-11-29 13:08:40 +01:00
parent 5049b53689
commit d521119c09

View File

@ -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);