diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-09 23:18:50 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-09 23:43:16 +0200 |
commit | a821caaae15a39cd38be6dd3d1c3ca37c4ac0364 (patch) | |
tree | 2d0d6cc910aedfaae255e127286333d8bc0907b0 /src/manager.c | |
parent | 71a6f7538199f571b92e0c9fbb5819f8ce0e0d20 (diff) |
main: make it possible to run a system daemon along side an aloready running one for testing purposes
Diffstat (limited to 'src/manager.c')
-rw-r--r-- | src/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manager.c b/src/manager.c index adff546397..638ef2f450 100644 --- a/src/manager.c +++ b/src/manager.c @@ -83,7 +83,7 @@ static int manager_setup_notify(Manager *m) { zero(sa); sa.sa.sa_family = AF_UNIX; - if (m->running_as == MANAGER_SESSION) + if (getpid() != 1) snprintf(sa.un.sun_path+1, sizeof(sa.un.sun_path)-1, NOTIFY_SOCKET "/%llu", random_ull()); else strncpy(sa.un.sun_path+1, NOTIFY_SOCKET, sizeof(sa.un.sun_path)-1); |