diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-05-05 19:17:36 +0100 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-05-05 19:17:36 +0100 |
commit | e6638bbd7008333ccda9402072a3d4c749eb306d (patch) | |
tree | ba4d09a31c629bbe8ed6a60cbbc050e369c8ba15 | |
parent | fa769f27d628bb03d0c6f9b3e3fc7c83c7fa8bb5 (diff) | |
download | zsh-e6638bbd7008333ccda9402072a3d4c749eb306d.tar.gz zsh-e6638bbd7008333ccda9402072a3d4c749eb306d.tar.xz zsh-e6638bbd7008333ccda9402072a3d4c749eb306d.zip |
35032: Handle SIGCONT for process better.
Update job status as well as process status.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/jobs.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 8afa7a877..40a22c395 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-05-05 Peter Stephenson <p.w.stephenson@ntlworld.com> + + * 35032: Src/jobs.c: update job status with process status if + process detected as continued. + 2015-05-05 Peter Stephenson <p.stephenson@samsung.com> * unposted: fix descriptions in previous commit (cosmetic). 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 */ |