chiark / gitweb /
main: freeze instead of exiting when run as init
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Apr 2010 02:19:02 +0000 (04:19 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 Apr 2010 02:19:02 +0000 (04:19 +0200)
main.c

diff --git a/main.c b/main.c
index 6a3eee2..b8ad590 100644 (file)
--- a/main.c
+++ b/main.c
@@ -575,5 +575,8 @@ finish:
 
         dbus_shutdown();
 
+        if (getpid() == 1)
+                freeze();
+
         return retval;
 }