summaryrefslogtreecommitdiffstats
path: root/Modules/readline.c
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2004-07-08 15:28:26 (GMT)
committerMichael W. Hudson <mwh@python.net>2004-07-08 15:28:26 (GMT)
commit238499060351da61665c1e623c5f59c6d0ef3354 (patch)
treee6d8506f934b886c98e06539c36ffb6aaacaee8f /Modules/readline.c
parentb43dbcb4e873dfebbf07654d732d2bc0033f4605 (diff)
downloadcpython-238499060351da61665c1e623c5f59c6d0ef3354.zip
cpython-238499060351da61665c1e623c5f59c6d0ef3354.tar.gz
cpython-238499060351da61665c1e623c5f59c6d0ef3354.tar.bz2
PyThreadState_Swap(NULL) didn't do what I thought it did. Fixes
[ 987287 ] Python 2.4a1, interpreter hanging on Keyboard Interrupt
Diffstat (limited to 'Modules/readline.c')
-rw-r--r--Modules/readline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index 8285d33..abcc9c6 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -700,7 +700,7 @@ readline_until_enter_or_signal(char *prompt, int *signal)
int s;
PyEval_RestoreThread(_PyOS_ReadlineTState);
s = PyErr_CheckSignals();
- PyThreadState_Swap(NULL);
+ PyEval_SaveThread();
if (s < 0) {
rl_free_line_state();
rl_cleanup_after_signal();