← Commit list

1f50e8428

Eric Andersen
Eric Andersen
2004-08-16
FAILED Duration: 26s

Subject

Do not use vfork, as init is not vfork safe. Do not allow askfirst when mmuless.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

init/init.c+2 -4
@@ -53,10 +53,6 @@
#endif
-#if defined(__UCLIBC__) && !defined(__ARCH_HAS_MMU__)
-#define fork vfork
-#endif
-
#define INIT_BUFFS_SIZE 256
/* From <linux/vt.h> */
@@ -580,6 +576,7 @@ static pid_t run(const struct init_action *a)
}
}
+#if !defined(__UCLIBC__) || defined(__ARCH_HAS_MMU__)
if (a->action & ASKFIRST) {
char c;
/*
@@ -597,6 +594,7 @@ static pid_t run(const struct init_action *a)
while(read(0, &c, 1) == 1 && c != '\n')
;
}
+#endif
/* Log the process name and args */
message(LOG, "Starting pid %d, console %s: '%s'",