diff Python/pystate.c @ 34928:9857daa22807 2.4

Backport my recent fix (rev. 2.40 of Python/pystate.c): Fix: [ 1176893 ] Readline segfault by unsilly-ing PyGILState_Release(). Backport candidate.
author Michael W. Hudson <mwh@python.net>
date Sun, 24 Apr 2005 19:32:34 +0000
parents ff3ca656c281
children c260d3b7d582 8341cefdecac
line wrap: on
line diff
--- a/Python/pystate.c	Thu Apr 21 21:53:43 2005 +0000
+++ b/Python/pystate.c	Sun Apr 24 19:32:34 2005 +0000
@@ -503,6 +503,6 @@
 	}
 	/* Release the lock if necessary */
 	else if (oldstate == PyGILState_UNLOCKED)
-		PyEval_ReleaseThread(tcur);
+		PyEval_SaveThread();
 }
 #endif /* WITH_THREAD */