[Python-checkins] python/dist/src/Modules readline.c,2.71,2.72
mwh at users.sourceforge.net
mwh at users.sourceforge.net
Thu Jul 8 17:28:30 CEST 2004
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10986/Modules
Modified Files:
readline.c
Log Message:
PyThreadState_Swap(NULL) didn't do what I thought it did. Fixes
[ 987287 ] Python 2.4a1, interpreter hanging on Keyboard Interrupt
Index: readline.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/readline.c,v
retrieving revision 2.71
retrieving revision 2.72
diff -C2 -d -r2.71 -r2.72
*** readline.c 7 Jul 2004 17:44:10 -0000 2.71
--- readline.c 8 Jul 2004 15:28:18 -0000 2.72
***************
*** 701,705 ****
PyEval_RestoreThread(_PyOS_ReadlineTState);
s = PyErr_CheckSignals();
! PyThreadState_Swap(NULL);
if (s < 0) {
rl_free_line_state();
--- 701,705 ----
PyEval_RestoreThread(_PyOS_ReadlineTState);
s = PyErr_CheckSignals();
! PyEval_SaveThread();
if (s < 0) {
rl_free_line_state();
More information about the Python-checkins
mailing list