From: Marc-André Lureau <marcandre.lureau(a)redhat.com>
Allow calling qemuDBusStart() multiple times (as may be done by
qemu-slirp already).
Signed-off-by: Marc-André Lureau <marcandre.lureau(a)redhat.com>
---
src/qemu/qemu_dbus.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/qemu/qemu_dbus.c b/src/qemu/qemu_dbus.c
index f3e6f3ee37..ae55bbb299 100644
--- a/src/qemu/qemu_dbus.c
+++ b/src/qemu/qemu_dbus.c
@@ -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"),
--
2.26.0.106.g9fadedd637