commit | 238499060351da61665c1e623c5f59c6d0ef3354 | [log] [tgz] |
---|---|---|
author | Michael W. Hudson <mwh@python.net> | Thu Jul 08 15:28:26 2004 +0000 |
committer | Michael W. Hudson <mwh@python.net> | Thu Jul 08 15:28:26 2004 +0000 |
tree | e6d8506f934b886c98e06539c36ffb6aaacaee8f | |
parent | b43dbcb4e873dfebbf07654d732d2bc0033f4605 [diff] [blame] |
PyThreadState_Swap(NULL) didn't do what I thought it did. Fixes [ 987287 ] Python 2.4a1, interpreter hanging on Keyboard Interrupt
diff --git a/Parser/myreadline.c b/Parser/myreadline.c index 979e34f..7fc421e 100644 --- a/Parser/myreadline.c +++ b/Parser/myreadline.c
@@ -84,7 +84,7 @@ int s; PyEval_RestoreThread(_PyOS_ReadlineTState); s = PyErr_CheckSignals(); - PyThreadState_Swap(NULL); + PyEval_SaveThread(); if (s < 0) { return 1; }