[Python-checkins] python/dist/src/Parser myreadline.c,2.32,2.33

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/Parser
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10986/Parser

Modified Files:
	myreadline.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: myreadline.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/myreadline.c,v
retrieving revision 2.32
retrieving revision 2.33
diff -C2 -d -r2.32 -r2.33
*** myreadline.c	7 Jul 2004 20:42:07 -0000	2.32
--- myreadline.c	8 Jul 2004 15:28:26 -0000	2.33
***************
*** 85,89 ****
  			PyEval_RestoreThread(_PyOS_ReadlineTState);
  			s = PyErr_CheckSignals();
! 			PyThreadState_Swap(NULL);
  			if (s < 0) {
  				return 1;
--- 85,89 ----
  			PyEval_RestoreThread(_PyOS_ReadlineTState);
  			s = PyErr_CheckSignals();
! 			PyEval_SaveThread();
  			if (s < 0) {
  				return 1;



More information about the Python-checkins mailing list