diff options
author | Ron Yorston <rmy@pobox.com> | 2012-04-23 10:57:02 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2012-04-23 10:57:02 +0100 |
commit | 2903c15333636ae51db14cab009533bac68c8a30 (patch) | |
tree | 11a49598f98c505c021202564348c5639e2fb0b1 /shell | |
parent | 5fc2c035953f71992197f6025918a8fe79ade1d3 (diff) | |
parent | f5234398ef3010b68468cafe3e2ea89b2bb08a17 (diff) | |
download | busybox-w32-2903c15333636ae51db14cab009533bac68c8a30.tar.gz busybox-w32-2903c15333636ae51db14cab009533bac68c8a30.tar.bz2 busybox-w32-2903c15333636ae51db14cab009533bac68c8a30.zip |
Merge commit '1_20_0' into merge
Diffstat (limited to 'shell')
-rw-r--r-- | shell/hush.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/shell/hush.c b/shell/hush.c index 7a34f59ae..51d38d3ae 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -324,6 +324,8 @@ typedef void (*hush_sighandler_t)(int); | |||
324 | # define ENABLE_FEATURE_EDITING 0 | 324 | # define ENABLE_FEATURE_EDITING 0 |
325 | # undef ENABLE_FEATURE_EDITING_FANCY_PROMPT | 325 | # undef ENABLE_FEATURE_EDITING_FANCY_PROMPT |
326 | # define ENABLE_FEATURE_EDITING_FANCY_PROMPT 0 | 326 | # define ENABLE_FEATURE_EDITING_FANCY_PROMPT 0 |
327 | # undef ENABLE_FEATURE_EDITING_SAVE_ON_EXIT | ||
328 | # define ENABLE_FEATURE_EDITING_SAVE_ON_EXIT 0 | ||
327 | #endif | 329 | #endif |
328 | 330 | ||
329 | /* Do we support ANY keywords? */ | 331 | /* Do we support ANY keywords? */ |
@@ -524,7 +526,6 @@ typedef enum redir_type { | |||
524 | struct command { | 526 | struct command { |
525 | pid_t pid; /* 0 if exited */ | 527 | pid_t pid; /* 0 if exited */ |
526 | int assignment_cnt; /* how many argv[i] are assignments? */ | 528 | int assignment_cnt; /* how many argv[i] are assignments? */ |
527 | smallint is_stopped; /* is the command currently running? */ | ||
528 | smallint cmd_type; /* CMD_xxx */ | 529 | smallint cmd_type; /* CMD_xxx */ |
529 | #define CMD_NORMAL 0 | 530 | #define CMD_NORMAL 0 |
530 | #define CMD_SUBSHELL 1 | 531 | #define CMD_SUBSHELL 1 |
@@ -6767,7 +6768,6 @@ static int checkjobs(struct pipe *fg_pipe) | |||
6767 | } | 6768 | } |
6768 | fg_pipe->cmds[i].cmd_exitcode = ex; | 6769 | fg_pipe->cmds[i].cmd_exitcode = ex; |
6769 | } else { | 6770 | } else { |
6770 | fg_pipe->cmds[i].is_stopped = 1; | ||
6771 | fg_pipe->stopped_cmds++; | 6771 | fg_pipe->stopped_cmds++; |
6772 | } | 6772 | } |
6773 | debug_printf_jobs("fg_pipe: alive_cmds %d stopped_cmds %d\n", | 6773 | debug_printf_jobs("fg_pipe: alive_cmds %d stopped_cmds %d\n", |
@@ -6828,7 +6828,6 @@ static int checkjobs(struct pipe *fg_pipe) | |||
6828 | } | 6828 | } |
6829 | } else { | 6829 | } else { |
6830 | /* child stopped */ | 6830 | /* child stopped */ |
6831 | pi->cmds[i].is_stopped = 1; | ||
6832 | pi->stopped_cmds++; | 6831 | pi->stopped_cmds++; |
6833 | } | 6832 | } |
6834 | #endif | 6833 | #endif |
@@ -8596,7 +8595,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); | 8595 | debug_printf_jobs("reviving %d procs, pgrp %d\n", pi->num_cmds, pi->pgrp); |
8597 | for (i = 0; i < pi->num_cmds; i++) { | 8596 | for (i = 0; i < pi->num_cmds; i++) { |
8598 | debug_printf_jobs("reviving pid %d\n", pi->cmds[i].pid); | 8597 | debug_printf_jobs("reviving pid %d\n", pi->cmds[i].pid); |
8599 | pi->cmds[i].is_stopped = 0; | ||
8600 | } | 8598 | } |
8601 | pi->stopped_cmds = 0; | 8599 | pi->stopped_cmds = 0; |
8602 | 8600 | ||