mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 07:42:56 +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;
|
pid_t cpid = -1;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
|
if (priv->dbusDaemonRunning)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (!virFileIsExecutable(cfg->dbusDaemonName)) {
|
if (!virFileIsExecutable(cfg->dbusDaemonName)) {
|
||||||
virReportSystemError(errno,
|
virReportSystemError(errno,
|
||||||
_("'%s' is not a suitable dbus-daemon"),
|
_("'%s' is not a suitable dbus-daemon"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user