提交 d521119c 编写于 作者: G Guido Günther

Don't fail hard when we can't connect to the monitor

As of 1a50ba2c 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.
上级 5049b536
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册