summaryrefslogtreecommitdiff
path: root/sig.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2022-12-21 09:57:36 -0500
committerChet Ramey <chet.ramey@case.edu>2022-12-21 09:57:36 -0500
commit001918cdecd4ab25aa3d0e08a2f791ceeb68b9ca (patch)
tree3c112af5428cdbbae4c01a082f09875f99066048 /sig.c
parentc4a2e37470e223c171f9dcf70d353d0e1eab1ea9 (diff)
downloadbash-001918cdecd4ab25aa3d0e08a2f791ceeb68b9ca.tar.gz
handle signals at more places in brace expansion; fix for subshells changing terminal process group on signals
Diffstat (limited to 'sig.c')
-rw-r--r--sig.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sig.c b/sig.c
index 72c3212f..659545b2 100644
--- a/sig.c
+++ b/sig.c
@@ -613,6 +613,7 @@ termsig_handler (sig)
if (sig == SIGHUP && (interactive || (subshell_environment & (SUBSHELL_COMSUB|SUBSHELL_PROCSUB))))
hangup_all_jobs ();
+ /* XXX - should we also suppress this call if SUBSHELL_PIPE? */
if ((subshell_environment & (SUBSHELL_COMSUB|SUBSHELL_PROCSUB)) == 0)
end_job_control ();
#endif /* JOB_CONTROL */