aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-03-29 00:45:26 +0000
committerMike Frysinger <vapier@gentoo.org>2009-03-29 00:45:26 +0000
commit8ec1c9dc6ead6605dd8e88d407e0c84a4d309818 (patch)
treea48d3a0e776625109b9a6042bd7e39a0e0978584
parent0b87e4ad1515831006618649f8afffd6c0b78f78 (diff)
downloadbusybox-w32-8ec1c9dc6ead6605dd8e88d407e0c84a4d309818.tar.gz
busybox-w32-8ec1c9dc6ead6605dd8e88d407e0c84a4d309818.tar.bz2
busybox-w32-8ec1c9dc6ead6605dd8e88d407e0c84a4d309818.zip
make sure we check job status whenever updating the prompt
-rw-r--r--shell/hush.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 96c949115..9f0e7f809 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -2841,7 +2841,7 @@ static int run_list(struct pipe *pi)
2841 } 2841 }
2842#endif 2842#endif
2843 if (pi->num_cmds == 0) 2843 if (pi->num_cmds == 0)
2844 continue; 2844 goto check_jobs_and_continue;
2845 2845
2846 /* After analyzing all keywords and conditions, we decided 2846 /* After analyzing all keywords and conditions, we decided
2847 * to execute this pipe. NB: has to do checkjobs(NULL) 2847 * to execute this pipe. NB: has to do checkjobs(NULL)
@@ -2928,6 +2928,8 @@ static int run_list(struct pipe *pi)
2928 ) { 2928 ) {
2929 skip_more_for_this_rword = rword; 2929 skip_more_for_this_rword = rword;
2930 } 2930 }
2931
2932 check_jobs_and_continue:
2931 checkjobs(NULL); 2933 checkjobs(NULL);
2932 } /* for (pi) */ 2934 } /* for (pi) */
2933 2935