[BusyBox-cvs] CVS update of busybox/init (init.c)
Erik Andersen
andersen at codepoet.org
Mon Aug 16 09:29:43 UTC 2004
Date: Monday, August 16, 2004 @ 03:29:43
Author: andersen
Path: /var/cvs/busybox/init
Modified: init.c (1.203 -> 1.204)
Do not use vfork, as init is not vfork safe. Do not allow
askfirst when mmuless.
Index: busybox/init/init.c
diff -u busybox/init/init.c:1.203 busybox/init/init.c:1.204
--- busybox/init/init.c:1.203 Tue Jun 22 04:07:15 2004
+++ busybox/init/init.c Mon Aug 16 03:29:42 2004
@@ -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 @@
}
}
+#if !defined(__UCLIBC__) || defined(__ARCH_HAS_MMU__)
if (a->action & ASKFIRST) {
char c;
/*
@@ -597,6 +594,7 @@
while(read(0, &c, 1) == 1 && c != '\n')
;
}
+#endif
/* Log the process name and args */
message(LOG, "Starting pid %d, console %s: '%s'",
More information about the busybox-cvs
mailing list