summaryrefslogtreecommitdiff
path: root/bashline.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2014-01-29 17:00:07 -0500
committerChet Ramey <chet.ramey@case.edu>2014-01-29 17:00:07 -0500
commitb6e23235f28b1c85e18e9a2b7ba8c6b6c46aecbc (patch)
tree00fdd9c37c261d89c994fc1856252df719afec3a /bashline.c
parent8581f42df9a1b1d848e2d4bdf3cc951b8d14b5be (diff)
downloadbash-4.3-testing.tar.gz
bash-4.3-rc2 overlaybash-4.3-rc2bash-4.3-testing
Diffstat (limited to 'bashline.c')
-rw-r--r--bashline.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bashline.c b/bashline.c
index 5320a4ee..79b8bcf8 100644
--- a/bashline.c
+++ b/bashline.c
@@ -4188,10 +4188,11 @@ bash_dequote_text (text)
static int
bash_event_hook ()
{
- /* If we're going to longjmp to top_level, make sure we clean up readline */
- if (interrupt_state && signal_is_trapped (SIGINT) == 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. */
+ if (interrupt_state)
rl_cleanup_after_signal ();
-
bashline_reset_event_hook ();
check_signals_and_traps (); /* XXX */
return 0;