about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2015-05-05 19:17:36 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2015-05-05 19:17:36 +0100
commite6638bbd7008333ccda9402072a3d4c749eb306d (patch)
treeba4d09a31c629bbe8ed6a60cbbc050e369c8ba15 /Src
parentfa769f27d628bb03d0c6f9b3e3fc7c83c7fa8bb5 (diff)
downloadzsh-e6638bbd7008333ccda9402072a3d4c749eb306d.tar.gz
zsh-e6638bbd7008333ccda9402072a3d4c749eb306d.tar.xz
zsh-e6638bbd7008333ccda9402072a3d4c749eb306d.zip
35032: Handle SIGCONT for process better.
Update job status as well as process status.
Diffstat (limited to 'Src')
-rw-r--r--Src/jobs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/jobs.c b/Src/jobs.c
index 295f4c939..948f61b01 100644
--- a/Src/jobs.c
+++ b/Src/jobs.c
@@ -421,8 +421,10 @@ update_job(Job jn)
 
     for (pn = jn->procs; pn; pn = pn->next) {
 #ifdef WIFCONTINUED
-	if (WIFCONTINUED(pn->status))
+	if (WIFCONTINUED(pn->status)) {
+	    jn->stat &= ~STAT_STOPPED;
 	    pn->status = SP_RUNNING;
+	}
 #endif
 	if (pn->status == SP_RUNNING)      /* some processes in this job are running       */
 	    return;                        /* so no need to update job table entry         */