From d79acc309327f8c0863bd3da8b93d926a1c93ba1 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Wed, 6 May 2015 18:18:43 +0200 Subject: bus: don't switch to kdbus if not requested Whenever systemd is re-executed, it tries to create a system bus via kdbus. If the system did not have kdbus loaded during bootup, but the module is loaded later on manually, this will cause two system buses running (kdbus and dbus-daemon in parallel). This patch makes sure we never try to create kdbus buses if it wasn't explicitly requested on the command-line. --- src/core/busname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/busname.c') diff --git a/src/core/busname.c b/src/core/busname.c index 1278c96638..3dc6e87e55 100644 --- a/src/core/busname.c +++ b/src/core/busname.c @@ -988,7 +988,7 @@ static bool busname_supported(void) { static int supported = -1; if (supported < 0) - supported = access("/sys/fs/kdbus", F_OK) >= 0; + supported = is_kdbus_available(); return supported; } -- cgit v1.2.3-54-g00ecf