提交 a86094d6 编写于 作者: M Marc-André Lureau 提交者: Michal Privoznik

qemu-dbus: prevent double start of the bus daemon

Allow calling qemuDBusStart() multiple times (as may be done by
qemu-slirp already).
Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 8cb44c01
......@@ -177,6 +177,9 @@ qemuDBusStart(virQEMUDriverPtr driver,
pid_t cpid = -1;
int ret = -1;
if (priv->dbusDaemonRunning)
return 0;
if (!virFileIsExecutable(cfg->dbusDaemonName)) {
virReportSystemError(errno,
_("'%s' is not a suitable dbus-daemon"),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册