summaryrefslogtreecommitdiff
path: root/sig.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-12-08 20:14:08 -0500
committerChet Ramey <chet.ramey@case.edu>2011-12-08 20:14:08 -0500
commit691aebcba30d177684f6cbb95e9377dfc598bda0 (patch)
tree4dff4b9ee7b8cf166437ec6883a8a4a569e30253 /sig.c
parent3eb2d94ad75ee80120ed2879f56dc954ddfeb03d (diff)
downloadbash-691aebcba30d177684f6cbb95e9377dfc598bda0.tar.gz
commit bash-20090813 snapshot
Diffstat (limited to 'sig.c')
-rw-r--r--sig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sig.c b/sig.c
index 625ce0dd..a217b894 100644
--- a/sig.c
+++ b/sig.c
@@ -526,7 +526,7 @@ termsig_handler (sig)
#endif /* HISTORY */
#if defined (JOB_CONTROL)
- if (interactive && sig == SIGHUP)
+ if (sig == SIGHUP && (interactive || (subshell_environment & (SUBSHELL_COMSUB|SUBSHELL_PROCSUB))))
hangup_all_jobs ();
end_job_control ();
#endif /* JOB_CONTROL */