diff options
-rw-r--r-- | hush.c | 2 | ||||
-rw-r--r-- | shell/hush.c | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -1162,6 +1162,8 @@ static void checkjobs() remove_bg_job(pi); } } else { + if(pi==NULL) + break; /* child stopped */ pi->stopped_progs++; pi->progs[prognum].is_stopped = 1; 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() remove_bg_job(pi); } } else { + if(pi==NULL) + break; /* child stopped */ pi->stopped_progs++; pi->progs[prognum].is_stopped = 1; |