aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
}
#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) */