diff options
author | Peter Stephenson <p.stephenson@samsung.com> | 2018-04-19 13:58:10 +0100 |
---|---|---|
committer | Peter Stephenson <p.stephenson@samsung.com> | 2018-04-19 13:58:10 +0100 |
commit | 0f29b5148e6157d9bfc1ead9fdae67137358e541 (patch) | |
tree | 1eea5b4d51404e3d24af789da5be4b5b18a4ced0 /Src | |
parent | 3c74891fcd68d37c1629943f703ac70428e3ce9f (diff) | |
download | zsh-0f29b5148e6157d9bfc1ead9fdae67137358e541.tar.gz zsh-0f29b5148e6157d9bfc1ead9fdae67137358e541.tar.xz zsh-0f29b5148e6157d9bfc1ead9fdae67137358e541.zip |
42686: Fix previous pgrp patch.
We shouldn't do any fix ups unless the process has actually exited.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/signals.c | 3 |
1 files changed, 2 insertions, 1 deletions
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)) { /* |