]> err.no Git - systemd/commitdiff
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 6a3eee2eb0511b6a74c81870d3c184fb48d6c02b..b8ad590189546a83dcd3be8ab9feee22ad5a1fc8 100644 (file)
--- a/main.c
+++ b/main.c
@@ -575,5 +575,8 @@ finish:
 
         dbus_shutdown();
 
+        if (getpid() == 1)
+                freeze();
+
         return retval;
 }