summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-13 04:19:02 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-13 04:19:02 +0200
commitc3b3c274cf7911121f84746cd80a152455f7ec97 (patch)
tree15dcc88ef68e5e1cb97492287cc605a044b3340d /main.c
parent8c43883a682b2edd902b170ab2e0f3d50d7e92e0 (diff)
main: freeze instead of exiting when run as init
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 6a3eee2eb0..b8ad590189 100644
--- a/main.c
+++ b/main.c
@@ -575,5 +575,8 @@ finish:
dbus_shutdown();
+ if (getpid() == 1)
+ freeze();
+
return retval;
}