diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/signals.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index c5fe925dd..41b993bfe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-04-19 Peter Stephenson <p.stephenson@samsung.com> + + * 42686: Src/signals.c: Fix 42630 only to change process groups + on exited process. + 2018-04-17 Peter Stephenson <p.stephenson@samsung.com> * 42630: Src/exec.c, Src/signals.c: Improve process group diff --git a/Src/signals.c b/Src/signals.c index 2a6aa3f24..6e1215875 100644 --- a/Src/signals.c +++ b/Src/signals.c @@ -537,7 +537,8 @@ wait_for_processes(void) #else update_process(pn, status); #endif - if (pn->pid == jn->gleader) { + if (WIFEXITED(status) && + pn->pid == jn->gleader) { jn->gleader = 0; if (!(jn->stat & STAT_NOSTTY)) { /* |