1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-26 03:21:44 +03:00

Don't fail on missing D-Bus

We don't fail when we can't contact HAL so we shouldn't fail if we can't
contact D-Bus either.
This commit is contained in:
Guido Günther 2010-10-13 09:07:48 +02:00
parent 0df671513d
commit 94f232bb9b

View File

@ -724,6 +724,10 @@ static int halDeviceMonitorStartup(int privileged ATTRIBUTE_UNUSED)
dbus_conn = dbus_bus_get(DBUS_BUS_SYSTEM, &err); dbus_conn = dbus_bus_get(DBUS_BUS_SYSTEM, &err);
if (dbus_conn == NULL) { if (dbus_conn == NULL) {
VIR_ERROR0(_("dbus_bus_get failed")); VIR_ERROR0(_("dbus_bus_get failed"));
/* We don't want to show a fatal error here,
otherwise entire libvirtd shuts down when
D-Bus isn't running */
ret = 0;
goto failure; goto failure;
} }
dbus_connection_set_exit_on_disconnect(dbus_conn, FALSE); dbus_connection_set_exit_on_disconnect(dbus_conn, FALSE);