diff options
author | Mike Frysinger | 2009-03-29 00:45:26 +0000 |
---|---|---|
committer | Mike Frysinger | 2009-03-29 00:45:26 +0000 |
commit | 8ec1c9dc6ead6605dd8e88d407e0c84a4d309818 (patch) | |
tree | a48d3a0e776625109b9a6042bd7e39a0e0978584 /shell | |
parent | 0b87e4ad1515831006618649f8afffd6c0b78f78 (diff) | |
download | busybox-8ec1c9dc6ead6605dd8e88d407e0c84a4d309818.zip busybox-8ec1c9dc6ead6605dd8e88d407e0c84a4d309818.tar.gz |
make sure we check job status whenever updating the prompt
Diffstat (limited to 'shell')
-rw-r--r-- | shell/hush.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c index 96c9491..9f0e7f8 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -2841,7 +2841,7 @@ static int run_list(struct pipe *pi) } #endif if (pi->num_cmds == 0) - continue; + goto check_jobs_and_continue; /* After analyzing all keywords and conditions, we decided * to execute this pipe. NB: has to do checkjobs(NULL) @@ -2928,6 +2928,8 @@ static int run_list(struct pipe *pi) ) { skip_more_for_this_rword = rword; } + + check_jobs_and_continue: checkjobs(NULL); } /* for (pi) */ |