aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-03-27 14:32:48 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2012-03-27 14:32:48 +0200
commit0d6bbb0497016d23e1e480a47b2e0823918de021 (patch)
treed76b64a1349d1243e7cd681336d2a413e6caa7ff
parentba88826c66411affc1da3614742b454654f7298a (diff)
downloadbusybox-w32-0d6bbb0497016d23e1e480a47b2e0823918de021.tar.gz
busybox-w32-0d6bbb0497016d23e1e480a47b2e0823918de021.tar.bz2
busybox-w32-0d6bbb0497016d23e1e480a47b2e0823918de021.zip
hush: remove unused member struct command::is_stopped
function old new delta builtin_umask 133 132 -1 checkjobs 551 544 -7 builtin_fg_bg 291 267 -24 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/hush.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 7a34f59ae..180ae4a62 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -524,7 +524,6 @@ typedef enum redir_type {
524struct command { 524struct command {
525 pid_t pid; /* 0 if exited */ 525 pid_t pid; /* 0 if exited */
526 int assignment_cnt; /* how many argv[i] are assignments? */ 526 int assignment_cnt; /* how many argv[i] are assignments? */
527 smallint is_stopped; /* is the command currently running? */
528 smallint cmd_type; /* CMD_xxx */ 527 smallint cmd_type; /* CMD_xxx */
529#define CMD_NORMAL 0 528#define CMD_NORMAL 0
530#define CMD_SUBSHELL 1 529#define CMD_SUBSHELL 1
@@ -6767,7 +6766,6 @@ static int checkjobs(struct pipe *fg_pipe)
6767 } 6766 }
6768 fg_pipe->cmds[i].cmd_exitcode = ex; 6767 fg_pipe->cmds[i].cmd_exitcode = ex;
6769 } else { 6768 } else {
6770 fg_pipe->cmds[i].is_stopped = 1;
6771 fg_pipe->stopped_cmds++; 6769 fg_pipe->stopped_cmds++;
6772 } 6770 }
6773 debug_printf_jobs("fg_pipe: alive_cmds %d stopped_cmds %d\n", 6771 debug_printf_jobs("fg_pipe: alive_cmds %d stopped_cmds %d\n",
@@ -6828,7 +6826,6 @@ static int checkjobs(struct pipe *fg_pipe)
6828 } 6826 }
6829 } else { 6827 } else {
6830 /* child stopped */ 6828 /* child stopped */
6831 pi->cmds[i].is_stopped = 1;
6832 pi->stopped_cmds++; 6829 pi->stopped_cmds++;
6833 } 6830 }
6834#endif 6831#endif
@@ -8596,7 +8593,6 @@ static int FAST_FUNC builtin_fg_bg(char **argv)
8596 debug_printf_jobs("reviving %d procs, pgrp %d\n", pi->num_cmds, pi->pgrp); 8593 debug_printf_jobs("reviving %d procs, pgrp %d\n", pi->num_cmds, pi->pgrp);
8597 for (i = 0; i < pi->num_cmds; i++) { 8594 for (i = 0; i < pi->num_cmds; i++) {
8598 debug_printf_jobs("reviving pid %d\n", pi->cmds[i].pid); 8595 debug_printf_jobs("reviving pid %d\n", pi->cmds[i].pid);
8599 pi->cmds[i].is_stopped = 0;
8600 } 8596 }
8601 pi->stopped_cmds = 0; 8597 pi->stopped_cmds = 0;
8602 8598