aboutsummaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init.c')
-rw-r--r--init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.c b/init.c
index ce2f237c7..75a659911 100644
--- a/init.c
+++ b/init.c
@@ -447,7 +447,8 @@ extern int init_main(int argc, char **argv)
447 447
448 448
449#ifndef DEBUG_INIT 449#ifndef DEBUG_INIT
450 if (getpid() != 1) { 450 /* Expect to be PID 1 iff we are run as init (not linuxrc) */
451 if (getpid() != 1 && strstr(argv[0], "init")!=NULL ) {
451 usage( "init\n\nInit is the parent of all processes.\n\n" 452 usage( "init\n\nInit is the parent of all processes.\n\n"
452 "This version of init is designed to be run only by the kernel\n"); 453 "This version of init is designed to be run only by the kernel\n");
453 } 454 }