From 6e2538ea91d2173315c802d0a1ee6f1dbfba46c1 Mon Sep 17 00:00:00 2001 From: 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. git-svn-id: svn://busybox.net/trunk/busybox@9102 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- 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 11ebc6bf9..2278e521f 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.2.3-55-g6feb