aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/hush.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 1ad5fcd72..de04c015a 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -3505,6 +3505,8 @@ static int checkjobs(struct pipe* fg_pipe)
#endif
return rcode;
}
+ if (!fg_pipe->alive_cmds)
+ return rcode;
}
/* There are still running processes in the fg pipe */
goto wait_more; /* do waitpid again */