mirror of
https://github.com/zsh-users/zsh
synced 2024-09-06 00:14:40 +00:00
35032: Handle SIGCONT for process better.
Update job status as well as process status.
This commit is contained in:
parent
fa769f27d6
commit
e6638bbd70
|
@ -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).
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue