projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd68f1e
)
hush: remove redundand test for ENABLE_HUSH_JOB
author
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 9 Jan 2017 04:57:13 +0000
(
05:57
+0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 9 Jan 2017 04:57:13 +0000
(
05:57
+0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c
patch
|
blob
|
history
diff --git
a/shell/hush.c
b/shell/hush.c
index 247ad7aabb77a20aa88fa84c55b89878af7cbfdf..c1079306086e4b6ec86c16df447525ec8a915872 100644
(file)
--- 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)