diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-03-22 09:28:58 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-03-22 09:28:58 (GMT) |
commit | 0b2d71bc70c32560853fa91f58dc37af8f08090c (patch) | |
tree | aa59f2d8c0d355dd85fa9f07bf19b3558c5834e5 /Modules/readline.c | |
parent | 2efdc8c7c1bbd8b1b017d692c0607f4b26245e2d (diff) | |
parent | d6990d221b0528fb874561201e9a374bc0b8ac0f (diff) | |
download | cpython-0b2d71bc70c32560853fa91f58dc37af8f08090c.zip cpython-0b2d71bc70c32560853fa91f58dc37af8f08090c.tar.gz cpython-0b2d71bc70c32560853fa91f58dc37af8f08090c.tar.bz2 |
Issue #24266: Merge readline Ctrl+C handling from 3.5
Diffstat (limited to 'Modules/readline.c')
-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 b1d6da3..cd93b62 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -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; |