diff options
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/hush.c b/shell/hush.c index a5f634b9a..1cb5f39ab 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -1162,6 +1162,8 @@ static void checkjobs() | |||
1162 | remove_bg_job(pi); | 1162 | remove_bg_job(pi); |
1163 | } | 1163 | } |
1164 | } else { | 1164 | } else { |
1165 | if(pi==NULL) | ||
1166 | break; | ||
1165 | /* child stopped */ | 1167 | /* child stopped */ |
1166 | pi->stopped_progs++; | 1168 | pi->stopped_progs++; |
1167 | pi->progs[prognum].is_stopped = 1; | 1169 | pi->progs[prognum].is_stopped = 1; |