From 1f50e84283df7ac846f5abf8789fc253d60caf9c Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 16 Aug 2004 09:29:42 +0000 Subject: Do not use vfork, as init is not vfork safe. Do not allow askfirst when mmuless. --- init/init.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'init') diff --git a/init/init.c b/init/init.c index 11ebc6b..2278e52 100644 --- 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 */ @@ -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'", -- cgit v1.1