aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-03-26 18:14:16 +0000
committerMike Frysinger <vapier@gentoo.org>2009-03-26 18:14:16 +0000
commitbfc0fae95238a5fd72728ea7547fdeb27f864060 (patch)
tree6af85d13141fdc973930c3c5bdb4fe610aa6c6c3 /shell
parentf9beb61a81a861d31161d086fb6dc59e01c00944 (diff)
downloadbusybox-bfc0fae95238a5fd72728ea7547fdeb27f864060.tar.gz
enable most job functions on no-mmu systems
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 91beb81e1..ad662000a 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -94,11 +94,6 @@
#warning For more info see shell/hush.c, generate_stream_from_list().
#endif
-#if !BB_MMU && ENABLE_HUSH_JOB
-#undef ENABLE_HUSH_JOB
-#define ENABLE_HUSH_JOB 0
-#endif
-
#if !ENABLE_HUSH_INTERACTIVE
#undef ENABLE_FEATURE_EDITING
#define ENABLE_FEATURE_EDITING 0
@@ -810,6 +805,12 @@ static void handler_ctrl_z(int sig UNUSED_PARAM)
pid_t pid;
debug_printf_jobs("got tty sig %d in pid %d\n", sig, getpid());
+
+ if (!BB_MMU) {
+ fputs("Sorry, backgrounding (CTRL+Z) of foreground scripts not supported on nommu\n", stderr);
+ return;
+ }
+
pid = fork();
if (pid < 0) /* can't fork. Pretend there was no ctrl-Z */
return;