diff options
author | Eric Andersen | 1999-11-21 21:50:07 +0000 |
---|---|---|
committer | Eric Andersen | 1999-11-21 21:50:07 +0000 |
commit | 0727458a97350158340b81c874ad7bce4378b96c (patch) | |
tree | 63f63b4cc4d1d41b6de95b4cc8fe7dfd0c7794b3 /init.c | |
parent | fa213cd71efcff433febc7565582be102846c13d (diff) | |
download | busybox-0727458a97350158340b81c874ad7bce4378b96c.zip busybox-0727458a97350158340b81c874ad7bce4378b96c.tar.gz |
Stuf
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -447,7 +447,8 @@ extern int init_main(int argc, char **argv) #ifndef DEBUG_INIT - if (getpid() != 1) { + /* Expect to be PID 1 iff we are run as init (not linuxrc) */ + if (getpid() != 1 && strstr(argv[0], "init")!=NULL ) { usage( "init\n\nInit is the parent of all processes.\n\n" "This version of init is designed to be run only by the kernel\n"); } |