summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenis Vlasenko2007-05-30 00:55:52 +0000
committerDenis Vlasenko2007-05-30 00:55:52 +0000
commit27f79ff03d2b4614d013948d95a5bc697ec41962 (patch)
tree9e4af002a86fbc91ddd80df1a7096b8a5ce09995 /shell
parent4b924f3a5c9c549c75deed8bdda2cbd82fd7f64b (diff)
downloadbusybox-27f79ff03d2b4614d013948d95a5bc697ec41962.zip
busybox-27f79ff03d2b4614d013948d95a5bc697ec41962.tar.gz
hush: trivial buglet found by randomconfig testing
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 7aad6e6..2a4076e 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -3151,7 +3151,9 @@ static FILE *generate_stream_from_list(struct pipe *head)
close(channel[1]);
}
/* Prevent it from trying to handle ctrl-z etc */
+#if ENABLE_HUSH_JOB
run_list_level = 1;
+#endif
/* Process substitution is not considered to be usual
* 'command execution'.
* SUSv3 says ctrl-Z should be ignored, ctrl-C should not. */