Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-11-11 02:13:02 +0300
committerEric Andersen <andersen@codepoet.org>1999-11-11 02:13:02 +0300
commitd73dc5b07390fb90e7f605871c993a28eedf1d46 (patch)
tree3e448e6550da52d2709e5f52fbae56e9df9462cc /init.c
parent84d85680712573c7a8bd7d0491c3f944dc08ad10 (diff)
Updates to usage, and made tar work.
-Erik
Diffstat (limited to 'init.c')
-rw-r--r--init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/init.c b/init.c
index a354f8a75..e70d5a15d 100644
--- a/init.c
+++ b/init.c
@@ -430,6 +430,13 @@ extern int init_main(int argc, char **argv)
#endif
+#ifndef DEBUG_INIT
+ if (getpid() != 1) {
+ 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");
+ }
+#endif
+
/* Check if we are supposed to be in single user mode */
if ( argc > 1 && (!strcmp(argv[1], "single") ||
!strcmp(argv[1], "-s") || !strcmp(argv[1], "1"))) {