projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88e38ca
)
Do not use vfork, as init is not vfork safe. Do not allow
author
Eric Andersen
<andersen@codepoet.org>
Mon, 16 Aug 2004 09:29:42 +0000
(09:29 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Mon, 16 Aug 2004 09:29:42 +0000
(09:29 -0000)
askfirst when mmuless.
init/init.c
patch
|
blob
|
history
diff --git
a/init/init.c
b/init/init.c
index 11ebc6bf96f0254c38afef21c001fa9b2c26cb46..2278e521f81b5b5d46dc0c48e3b2fe2a95b4fe6b 100644
(file)
--- a/
init/init.c
+++ b/
init/init.c
@@
-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'",