From d73dc5b07390fb90e7f605871c993a28eedf1d46 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 10 Nov 1999 23:13:02 +0000 Subject: Updates to usage, and made tar work. -Erik --- init/init.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'init/init.c') diff --git a/init/init.c b/init/init.c index a354f8a..e70d5a1 100644 --- a/init/init.c +++ b/init/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"))) { -- cgit v1.1