commit | 0727458a97350158340b81c874ad7bce4378b96c | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Sun Nov 21 21:50:07 1999 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Sun Nov 21 21:50:07 1999 +0000 |
tree | 63f63b4cc4d1d41b6de95b4cc8fe7dfd0c7794b3 | |
parent | fa213cd71efcff433febc7565582be102846c13d [diff] [blame] |
Stuf
diff --git a/init/init.c b/init/init.c index ce2f237..75a6599 100644 --- a/init/init.c +++ b/init/init.c
@@ -447,7 +447,8 @@ #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"); }