From: Lennart Poettering Date: Tue, 13 Apr 2010 02:19:02 +0000 (+0200) Subject: main: freeze instead of exiting when run as init X-Git-Tag: 0.git+20100605+dfd8ee-1~134 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3b3c274cf7911121f84746cd80a152455f7ec97;p=systemd main: freeze instead of exiting when run as init --- diff --git a/main.c b/main.c index 6a3eee2e..b8ad5901 100644 --- a/main.c +++ b/main.c @@ -575,5 +575,8 @@ finish: dbus_shutdown(); + if (getpid() == 1) + freeze(); + return retval; }