diff options
author | Chet Ramey <chet.ramey@case.edu> | 2011-12-29 13:05:52 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2011-12-29 13:05:52 -0500 |
commit | c1854f2dd6a5ab4c240bf697f86856511b2d1660 (patch) | |
tree | d4ebaaebff5079f481f9f5d197d56a5b660bc18f /lib/readline/signals.c | |
parent | 7df0c1b2df350299db28d8742c4b3ce57a907314 (diff) | |
download | bash-c1854f2dd6a5ab4c240bf697f86856511b2d1660.tar.gz |
commit bash-20110325 snapshot
Diffstat (limited to 'lib/readline/signals.c')
-rw-r--r-- | lib/readline/signals.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/readline/signals.c b/lib/readline/signals.c index 3b28f091..ba2674ab 100644 --- a/lib/readline/signals.c +++ b/lib/readline/signals.c @@ -135,7 +135,10 @@ _rl_signal_handler (sig) { _rl_caught_signal = 0; /* XXX */ - _rl_handle_signal (sig); + if (sig == SIGWINCH) + rl_resize_terminal (); + else + _rl_handle_signal (sig); SIGHANDLER_RETURN; } @@ -258,7 +261,7 @@ rl_sigwinch_handler (sig) #endif RL_SETSTATE(RL_STATE_SIGHANDLER); - rl_resize_terminal (); + _rl_caught_signal = sig; /* If another sigwinch handler has been installed, call it. */ oh = (SigHandler *)old_winch.sa_handler; |