diff options
author | Bart Schaefer <schaefer@zsh.org> | 2022-11-09 20:24:57 -0800 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2022-11-09 20:24:57 -0800 |
commit | 61610ea4bdc3e2de11c258017f377db3d1d6d993 (patch) | |
tree | e1ea99cb664d077b15f872fe8d057c4cf3ec2d1e /Src/jobs.c | |
parent | d873ed6026d7b0c48d6e65ec06df491d015a4d59 (diff) | |
download | zsh-61610ea4bdc3e2de11c258017f377db3d1d6d993.tar.gz zsh-61610ea4bdc3e2de11c258017f377db3d1d6d993.tar.xz zsh-61610ea4bdc3e2de11c258017f377db3d1d6d993.zip |
50922: fix additional cases of signals for current shell jobs on the right of a pipeline.
Backs out part of 188c5cd5 (workers/50874). With this change, after a new subshell is forked upon suspend of the right side of a pipeline, the previous foreground subjob is resumed first and the new subshell remains stopped until that job finishes.
Diffstat (limited to 'Src/jobs.c')
-rw-r--r-- | Src/jobs.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Src/jobs.c b/Src/jobs.c index 76c762ee5..4863962b9 100644 --- a/Src/jobs.c +++ b/Src/jobs.c @@ -564,12 +564,6 @@ update_job(Job jn) * when the job is finally deleted. */ jn->stat |= STAT_ATTACH; - /* - * If we're in shell jobs on the right side of a pipeline - * we should treat it like a job in the current shell. - */ - if (inforeground == 2) - inforeground = 1; } /* If we have `foo|while true; (( x++ )); done', and hit * ^C, we have to stop the loop, too. */ |