1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-08 12:01:21 +02:00

35032: Handle SIGCONT for process better.

Update job status as well as process status.
This commit is contained in:
Peter Stephenson 2015-05-05 19:17:36 +01:00
parent fa769f27d6
commit e6638bbd70
2 changed files with 8 additions and 1 deletions

View file

@ -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> 2015-05-05 Peter Stephenson <p.stephenson@samsung.com>
* unposted: fix descriptions in previous commit (cosmetic). * unposted: fix descriptions in previous commit (cosmetic).

View file

@ -421,8 +421,10 @@ update_job(Job jn)
for (pn = jn->procs; pn; pn = pn->next) { for (pn = jn->procs; pn; pn = pn->next) {
#ifdef WIFCONTINUED #ifdef WIFCONTINUED
if (WIFCONTINUED(pn->status)) if (WIFCONTINUED(pn->status)) {
jn->stat &= ~STAT_STOPPED;
pn->status = SP_RUNNING; pn->status = SP_RUNNING;
}
#endif #endif
if (pn->status == SP_RUNNING) /* some processes in this job are running */ if (pn->status == SP_RUNNING) /* some processes in this job are running */
return; /* so no need to update job table entry */ return; /* so no need to update job table entry */