aboutsummaryrefslogtreecommitdiff
path: root/shell/hush.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-01-09 05:57:13 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2017-01-09 05:57:13 +0100
commit5362cc4b8caa5c4b8bf815d8ac2fd50a0d8e9354 (patch)
tree2fe8d2b71a97966b909b6e2046e79ff6b8d51bb2 /shell/hush.c
parentfd68f1e80dbed81e42a0298db5fcf578e8d944a9 (diff)
downloadbusybox-5362cc4b8caa5c4b8bf815d8ac2fd50a0d8e9354.tar.gz
hush: remove redundand test for ENABLE_HUSH_JOB
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush.c')
-rw-r--r--shell/hush.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 247ad7aab..c10793060 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -9730,9 +9730,7 @@ static int FAST_FUNC builtin_kill(char **argv)
* sh -c 'true|sleep 2 & sleep 1; kill %1'
* sh -c 'true|sleep 1 & sleep 2; kill %1'
*/
- n = pi->num_cmds;
- if (ENABLE_HUSH_JOB && G_interactive_fd)
- n = 1;
+ n = G_interactive_fd ? 1 : pi->num_cmds;
dst = alloca(n * sizeof(int)*4);
argv[i] = dst;
if (G_interactive_fd)