diff options
author | Chet Ramey <chet.ramey@case.edu> | 2020-03-09 16:35:44 -0400 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2020-03-09 16:35:44 -0400 |
commit | 8f576adedb5a2fddef50383ac1f2e45ddcbb2bf5 (patch) | |
tree | 8c0e767914c6ebf0a4d6ee5c2482a7d69c53c557 /bashline.c | |
parent | 47c7369e84afc456bb73c6cabee918dcd44adda9 (diff) | |
download | bash-8f576adedb5a2fddef50383ac1f2e45ddcbb2bf5.tar.gz |
commit bash-20200306 snapshot
Diffstat (limited to 'bashline.c')
-rw-r--r-- | bashline.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |