hush: remove redundand test for ENABLE_HUSH_JOB

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2017-01-09 05:57:13 +01:00
parent fd68f1e80d
commit 5362cc4b8c

View File

@ -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 2 & sleep 1; kill %1'
* sh -c 'true|sleep 1 & sleep 2; kill %1' * sh -c 'true|sleep 1 & sleep 2; kill %1'
*/ */
n = pi->num_cmds; n = G_interactive_fd ? 1 : pi->num_cmds;
if (ENABLE_HUSH_JOB && G_interactive_fd)
n = 1;
dst = alloca(n * sizeof(int)*4); dst = alloca(n * sizeof(int)*4);
argv[i] = dst; argv[i] = dst;
if (G_interactive_fd) if (G_interactive_fd)