mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 23:37:42 +00:00
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: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
8cb44c01a8
commit
a86094d694
@ -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"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user