aboutsummaryrefslogtreecommitdiff
path: root/hush.c
diff options
context:
space:
mode:
Diffstat (limited to 'hush.c')
-rw-r--r--hush.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hush.c b/hush.c
index a5f634b9a..1cb5f39ab 100644
--- a/hush.c
+++ b/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;