summaryrefslogtreecommitdiff
path: root/src/dbus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-09 23:18:50 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-09 23:43:16 +0200
commita821caaae15a39cd38be6dd3d1c3ca37c4ac0364 (patch)
tree2d0d6cc910aedfaae255e127286333d8bc0907b0 /src/dbus.c
parent71a6f7538199f571b92e0c9fbb5819f8ce0e0d20 (diff)
main: make it possible to run a system daemon along side an aloready running one for testing purposes
Diffstat (limited to 'src/dbus.c')
-rw-r--r--src/dbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus.c b/src/dbus.c
index 2998c58178..1620469e0e 100644
--- a/src/dbus.c
+++ b/src/dbus.c
@@ -907,7 +907,7 @@ static int bus_init_private(Manager *m) {
return 0;
/* We want the private bus only when running as init */
- if (m->running_as != MANAGER_SYSTEM)
+ if (getpid() != 1)
return 0;
if (!(m->private_bus = dbus_server_listen("unix:abstract=/org/freedesktop/systemd1/private", &error))) {