From e6638bbd7008333ccda9402072a3d4c749eb306d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 5 May 2015 19:17:36 +0100 Subject: 35032: Handle SIGCONT for process better. Update job status as well as process status. --- ChangeLog | 5 +++++ Src/jobs.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8afa7a877..40a22c395 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-05-05 Peter Stephenson + + * 35032: Src/jobs.c: update job status with process status if + process detected as continued. + 2015-05-05 Peter Stephenson * 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 */ -- cgit 1.4.1