summaryrefslogtreecommitdiff
path: root/shell/lash.c
diff options
context:
space:
mode:
authorEric Andersen2004-04-12 17:59:24 +0000
committerEric Andersen2004-04-12 17:59:24 +0000
commite3efc9230c2f192e2738cee733c6d4fa20a2be2a (patch)
tree4f31c690a602713220868b2d6f98bf4aaf53eeed /shell/lash.c
parenta08345598d7c6d428db30cdcf8e5e7d317362da0 (diff)
downloadbusybox-e3efc9230c2f192e2738cee733c6d4fa20a2be2a.zip
busybox-e3efc9230c2f192e2738cee733c6d4fa20a2be2a.tar.gz
Jamie Guinan writes:
It looks like latest uClibc defines ARCH_HAS_MMU, but a few busybox files test UCLIBC_HAS_MMU, resulting in vfork() getting called instead of fork(), etc. Patch below. Only tested for lash. Cheers, -Jamie
Diffstat (limited to 'shell/lash.c')
-rw-r--r--shell/lash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/lash.c b/shell/lash.c
index b46cee8..fa416c7 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -1380,7 +1380,7 @@ static int run_command(struct job *newjob, int inbg, int outpipe[2])
}
}
-#if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__)
+#if !defined(__UCLIBC__) || defined(__ARCH_HAS_MMU__)
if (!(child->pid = fork()))
#else
if (!(child->pid = vfork()))