From 069fbf412410376de47f130ebda2a6fca831ed92 Mon Sep 17 00:00:00 2001
From: andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Date: Mon, 30 Sep 2002 20:12:32 +0000
Subject: Don't even try to run ash on uClinux.  It won't work.  -Erik

git-svn-id: svn://busybox.net/trunk/busybox@5608 69ca8d6d-28ef-0310-b511-8ec308f3f277
---
 shell/ash.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'shell')

diff --git a/shell/ash.c b/shell/ash.c
index 715adc393..216780c9d 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -85,6 +85,10 @@
 
 #include "cmdedit.h"
 
+#if defined(__uClinux__)
+#error "Do not even bother, ash will not run on uClinux"
+#endif
+
 /*
  * This file was generated by the mksyntax program.
  */
@@ -6407,11 +6411,7 @@ static int forkshell(struct job *jp, const union node *n, int mode)
 	TRACE(("forkshell(%%%d, 0x%lx, %d) called\n", jp - jobtab, (long) n,
 		   mode));
 	INTOFF;
-#if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__)
 	pid = fork();
-#else
-	pid = vfork();
-#endif
 	if (pid == -1) {
 		TRACE(("Fork failed, errno=%d\n", errno));
 		INTON;
-- 
cgit v1.2.3-55-g6feb