[libvirt PATCH 3/6] qemu-dbus: prevent double start of the bus daemon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>

Allow calling qemuDBusStart() multiple times (as may be done by
qemu-slirp already).

Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
---
 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





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux