← Commit list

0727458a9

Eric Andersen
Eric Andersen
1999-11-21
SUCCESS Duration: 4s

Subject

Stuf

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Debian 14.2.0-19) 14.2.0

—

Build Log

(log yok)

Commit Diff GitHub →

Makefile+1 -1
@@ -101,7 +101,7 @@ force:
$(OBJECTS): busybox.def.h internal.h Makefile
-install: busybox
+install: busybox busybox.links
./install.sh $(PREFIX)
whichversion:
init.c+2 -1
@@ -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");
}
init/init.c+2 -1
@@ -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");
}