diff options
| -rw-r--r-- | shell/hush.c | 11 |
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 @@ | |||
| 94 | #warning For more info see shell/hush.c, generate_stream_from_list(). | 94 | #warning For more info see shell/hush.c, generate_stream_from_list(). |
| 95 | #endif | 95 | #endif |
| 96 | 96 | ||
| 97 | #if !BB_MMU && ENABLE_HUSH_JOB | ||
| 98 | #undef ENABLE_HUSH_JOB | ||
| 99 | #define ENABLE_HUSH_JOB 0 | ||
| 100 | #endif | ||
| 101 | |||
| 102 | #if !ENABLE_HUSH_INTERACTIVE | 97 | #if !ENABLE_HUSH_INTERACTIVE |
| 103 | #undef ENABLE_FEATURE_EDITING | 98 | #undef ENABLE_FEATURE_EDITING |
| 104 | #define ENABLE_FEATURE_EDITING 0 | 99 | #define ENABLE_FEATURE_EDITING 0 |
| @@ -810,6 +805,12 @@ static void handler_ctrl_z(int sig UNUSED_PARAM) | |||
| 810 | pid_t pid; | 805 | pid_t pid; |
| 811 | 806 | ||
| 812 | debug_printf_jobs("got tty sig %d in pid %d\n", sig, getpid()); | 807 | debug_printf_jobs("got tty sig %d in pid %d\n", sig, getpid()); |
| 808 | |||
| 809 | if (!BB_MMU) { | ||
| 810 | fputs("Sorry, backgrounding (CTRL+Z) of foreground scripts not supported on nommu\n", stderr); | ||
| 811 | return; | ||
| 812 | } | ||
| 813 | |||
| 813 | pid = fork(); | 814 | pid = fork(); |
| 814 | if (pid < 0) /* can't fork. Pretend there was no ctrl-Z */ | 815 | if (pid < 0) /* can't fork. Pretend there was no ctrl-Z */ |
| 815 | return; | 816 | return; |
