summaryrefslogtreecommitdiff
path: root/bashline.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2020-03-09 16:35:44 -0400
committerChet Ramey <chet.ramey@case.edu>2020-03-09 16:35:44 -0400
commit8f576adedb5a2fddef50383ac1f2e45ddcbb2bf5 (patch)
tree8c0e767914c6ebf0a4d6ee5c2482a7d69c53c557 /bashline.c
parent47c7369e84afc456bb73c6cabee918dcd44adda9 (diff)
downloadbash-8f576adedb5a2fddef50383ac1f2e45ddcbb2bf5.tar.gz
commit bash-20200306 snapshot
Diffstat (limited to 'bashline.c')
-rw-r--r--bashline.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/bashline.c b/bashline.c
index 4a42070d..0b72fed9 100644
--- a/bashline.c
+++ b/bashline.c
@@ -4657,6 +4657,15 @@ bash_dequote_text (text)
static int
bash_event_hook ()
{
+ /* XXX - see if we need to do anything here if sigterm_received == 1,
+ we probably don't want to reset the event hook since we will not be
+ jumping to the top level */
+ if (sigterm_received)
+ {
+ /* RESET_SIGTERM; */
+ return 0;
+ }
+
/* If we're going to longjmp to top_level, make sure we clean up readline.
check_signals will call QUIT, which will eventually longjmp to top_level,
calling run_interrupt_trap along the way. The check for sigalrm_seen is