summaryrefslogtreecommitdiff
path: root/sig.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2015-01-15 10:21:08 -0500
committerChet Ramey <chet.ramey@case.edu>2015-01-15 10:21:08 -0500
commit84c617ecf0f06d4df1c3951504bb0d668c990e58 (patch)
tree70c2b9aa1f8ad5fa3c2c2806419843cb74126f6a /sig.c
parentd836e8a211ccb940fc5d21ce960cc93a34e4ebce (diff)
downloadbash-84c617ecf0f06d4df1c3951504bb0d668c990e58.tar.gz
Bash-4.3 patch 33
Diffstat (limited to 'sig.c')
-rw-r--r--sig.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sig.c b/sig.c
index 3b62ea5d..8bc45c17 100644
--- a/sig.c
+++ b/sig.c
@@ -532,8 +532,10 @@ termsig_sighandler (sig)
#if defined (READLINE)
/* Set the event hook so readline will call it after the signal handlers
finish executing, so if this interrupted character input we can get
- quick response. */
- if (interactive_shell && interactive && no_line_editing == 0)
+ quick response. If readline is active or has modified the terminal we
+ need to set this no matter what the signal is, though the check for
+ RL_STATE_TERMPREPPED is possibly redundant. */
+ if (RL_ISSTATE (RL_STATE_SIGHANDLER) || RL_ISSTATE (RL_STATE_TERMPREPPED))
bashline_set_event_hook ();
#endif