mirror of
https://github.com/sheumann/hush.git
synced 2024-10-03 00:55:47 +00:00
Don't even try to run ash on uClinux. It won't work.
-Erik
This commit is contained in:
parent
6a9799020b
commit
aa1d6ccbfb
@ -85,6 +85,10 @@
|
|||||||
|
|
||||||
#include "cmdedit.h"
|
#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.
|
* 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,
|
TRACE(("forkshell(%%%d, 0x%lx, %d) called\n", jp - jobtab, (long) n,
|
||||||
mode));
|
mode));
|
||||||
INTOFF;
|
INTOFF;
|
||||||
#if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__)
|
|
||||||
pid = fork();
|
pid = fork();
|
||||||
#else
|
|
||||||
pid = vfork();
|
|
||||||
#endif
|
|
||||||
if (pid == -1) {
|
if (pid == -1) {
|
||||||
TRACE(("Fork failed, errno=%d\n", errno));
|
TRACE(("Fork failed, errno=%d\n", errno));
|
||||||
INTON;
|
INTON;
|
||||||
|
Loading…
Reference in New Issue
Block a user