sd-bus: do not connect to dbus-1 socket when kdbus is available

We should not fall back to dbus-1 and connect to the proxy when kdbus
returns an error that indicates that kdbus is running but just does not
accept new connections because of quota limits or something similar.

Using is_kdbus_available() in libsystemd/ requires it to move from
shared/ to libsystemd/.

Based on a patch from David Herrmann:
  https://github.com/systemd/systemd/pull/886
This commit is contained in:
Kay Sievers
2015-08-11 20:49:36 +02:00
parent 3f1818cf70
commit d4d00020d6
31 changed files with 95 additions and 98 deletions
-1
View File
@@ -27,7 +27,6 @@
#include "dbus-timer.h"
#include "special.h"
#include "bus-util.h"
#include "bus-error.h"
static const UnitActiveState state_translation_table[_TIMER_STATE_MAX] = {
[TIMER_DEAD] = UNIT_INACTIVE,