提交 fba810f1 编写于 作者: G Gerd Hoffmann

spice: catch spice server initialization failures.

When the spice server initialization fails report this and exit instead
of ignoring the error.
Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
上级 638f4e47
......@@ -602,7 +602,10 @@ void qemu_spice_init(void)
qemu_opt_foreach(opts, add_channel, NULL, 0);
spice_server_init(spice_server, &core_interface);
if (0 != spice_server_init(spice_server, &core_interface)) {
fprintf(stderr, "failed to initialize spice server");
exit(1);
};
using_spice = 1;
migration_state.notify = migration_state_notifier;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册