Issue #24266: Merge readline Ctrl+C handling from 3.5

This commit is contained in:
Martin Panter 2016-03-22 09:28:58 +00:00
commit 0b2d71bc70
2 changed files with 6 additions and 0 deletions

View file

@ -1138,6 +1138,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;