[Python-checkins] python/dist/src/Python pystate.c, 2.38.2.1, 2.38.2.2

mwh at users.sourceforge.net mwh at users.sourceforge.net
Sun Apr 24 21:32:36 CEST 2005


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27864/Python

Modified Files:
      Tag: release24-maint
	pystate.c 
Log Message:
Backport my recent fix (rev. 2.40 of Python/pystate.c):

Fix:

[ 1176893 ] Readline segfault

by unsilly-ing PyGILState_Release().

Backport candidate.
 


Index: pystate.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pystate.c,v
retrieving revision 2.38.2.1
retrieving revision 2.38.2.2
diff -u -d -r2.38.2.1 -r2.38.2.2
--- pystate.c	8 Feb 2005 15:01:35 -0000	2.38.2.1
+++ pystate.c	24 Apr 2005 19:32:34 -0000	2.38.2.2
@@ -503,6 +503,6 @@
 	}
 	/* Release the lock if necessary */
 	else if (oldstate == PyGILState_UNLOCKED)
-		PyEval_ReleaseThread(tcur);
+		PyEval_SaveThread();
 }
 #endif /* WITH_THREAD */



More information about the Python-checkins mailing list