commit 6375a9a0d444f732823386cb9e364028bfab54c9 parent c04b257d12aaf73bf5181f297d8ecc9898bb1c40 Author: leitner <leitner> Date: Wed, 30 Mar 2005 09:58:47 +0000 allow minit to stay around without services if it is running as root Diffstat:
M | minit.c | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/minit.c b/minit.c @@ -141,8 +141,9 @@ void handlekilled(pid_t killed) { } #endif if (killed == (pid_t)-1) { - write(2,"all services exited.\n",21); - exit(0); + static int saidso; + if (!saidso) { write(2,"all services exited.\n",21); saidso=1; } + if (i_am_init) exit(0); } if (killed==0) return; i=findbypid(killed);