diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/readline.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/readline.c b/Modules/readline.c index 1fee935..4013003 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -1140,6 +1140,9 @@ readline_until_enter_or_signal(const char *prompt, int *signal) #endif if (s < 0) { rl_free_line_state(); +#if defined(RL_READLINE_VERSION) && RL_READLINE_VERSION >= 0x0700 + rl_callback_sigcleanup(); +#endif rl_cleanup_after_signal(); rl_callback_handler_remove(); *signal = 1; |