fiss-minit

A standalone service supervisor based on minit
Log | Files | Refs | README | LICENSE

commit 52af4b8a90fa15186069decb0ca36bca64de45d0
parent 81e9381b9d06a933e85177fb76c469410978e13d
Author: leitner <leitner>
Date:   Mon, 29 Sep 2014 14:16:02 +0000

don't start sulogin if not running as pid 1

Diffstat:
Mminit.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/minit.c b/minit.c @@ -409,7 +409,8 @@ int startservice(int service,int pause,int father) { void sulogin() { /* exiting on an initialization failure is not a good idea for init */ char *argv[]={"sulogin",0}; - execve("/sbin/sulogin",argv,environ); + if (i_am_init) + execve("/sbin/sulogin",argv,environ); _exit(1); }