diff options
author | Chet Ramey <chet.ramey@case.edu> | 2015-01-15 10:21:08 -0500 |
---|---|---|
committer | Dan Pasanen <dan.pasanen@gmail.com> | 2015-02-19 15:44:15 -0600 |
commit | bbc8b4849e0921dc4d9742359ca37f527712eccd (patch) | |
tree | a7073195c30ebb97866130352e0521fe6a4ccb7e /sig.c | |
parent | c6a8bcd4a5660e7d0bc4759f08a272c97bea369d (diff) | |
download | android_external_bash-bbc8b4849e0921dc4d9742359ca37f527712eccd.tar.gz android_external_bash-bbc8b4849e0921dc4d9742359ca37f527712eccd.tar.bz2 android_external_bash-bbc8b4849e0921dc4d9742359ca37f527712eccd.zip |
Bash-4.3 patch 33stable/cm-12.1-YOG7Dstable/cm-12.1-YOG4Pstable/cm-12.1-YOG3Cstable/cm-12.0-YNG4Nstable/cm-12.0-YNG3Ccm-12.1cm-12.0
Change-Id: Id50c454f86c5df0e6cab6226ab7e5cc1a9b37883
Diffstat (limited to 'sig.c')
-rw-r--r-- | sig.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |