diff options
| author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-09-30 20:12:32 +0000 |
|---|---|---|
| committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-09-30 20:12:32 +0000 |
| commit | 069fbf412410376de47f130ebda2a6fca831ed92 (patch) | |
| tree | 8f94ed7c5e50231daeff2e7c34ac548e6a18414e /shell | |
| parent | 62a73990f0283e97ceecc2d7ef9b948072ad8f32 (diff) | |
| download | busybox-w32-069fbf412410376de47f130ebda2a6fca831ed92.tar.gz busybox-w32-069fbf412410376de47f130ebda2a6fca831ed92.tar.bz2 busybox-w32-069fbf412410376de47f130ebda2a6fca831ed92.zip | |
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
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/ash.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 @@ | |||
| 85 | 85 | ||
| 86 | #include "cmdedit.h" | 86 | #include "cmdedit.h" |
| 87 | 87 | ||
| 88 | #if defined(__uClinux__) | ||
| 89 | #error "Do not even bother, ash will not run on uClinux" | ||
| 90 | #endif | ||
| 91 | |||
| 88 | /* | 92 | /* |
| 89 | * This file was generated by the mksyntax program. | 93 | * This file was generated by the mksyntax program. |
| 90 | */ | 94 | */ |
| @@ -6407,11 +6411,7 @@ static int forkshell(struct job *jp, const union node *n, int mode) | |||
| 6407 | TRACE(("forkshell(%%%d, 0x%lx, %d) called\n", jp - jobtab, (long) n, | 6411 | TRACE(("forkshell(%%%d, 0x%lx, %d) called\n", jp - jobtab, (long) n, |
| 6408 | mode)); | 6412 | mode)); |
| 6409 | INTOFF; | 6413 | INTOFF; |
| 6410 | #if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__) | ||
| 6411 | pid = fork(); | 6414 | pid = fork(); |
| 6412 | #else | ||
| 6413 | pid = vfork(); | ||
| 6414 | #endif | ||
| 6415 | if (pid == -1) { | 6415 | if (pid == -1) { |
| 6416 | TRACE(("Fork failed, errno=%d\n", errno)); | 6416 | TRACE(("Fork failed, errno=%d\n", errno)); |
| 6417 | INTON; | 6417 | INTON; |
