diff options
Diffstat (limited to 'lib/readline/signals.c')
-rw-r--r-- | lib/readline/signals.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/readline/signals.c b/lib/readline/signals.c index 25e4f377..d373ba14 100644 --- a/lib/readline/signals.c +++ b/lib/readline/signals.c @@ -141,10 +141,19 @@ _rl_signal_handler (sig) #if defined (SIGWINCH) if (sig == SIGWINCH) - rl_resize_terminal (); + { + rl_resize_terminal (); + /* XXX - experimental for now */ + /* Call a signal hook because though we called the original signal handler + in rl_sigwinch_handler below, we will not resend the signal to + ourselves. */ + if (rl_signal_event_hook) + (*rl_signal_event_hook) (); + } else #endif _rl_handle_signal (sig); + SIGHANDLER_RETURN; } |