Backport my recent fix (rev. 2.40 of Python/pystate.c):

Fix:

[ 1176893 ] Readline segfault

by unsilly-ing PyGILState_Release().

Backport candidate.
This commit is contained in:
Michael W. Hudson
2005-04-24 19:32:34 +00:00
parent 4d3fec604d
commit 14ef205309
2 changed files with 7 additions and 1 deletions

View File

@@ -503,6 +503,6 @@ PyGILState_Release(PyGILState_STATE oldstate)
}
/* Release the lock if necessary */
else if (oldstate == PyGILState_UNLOCKED)
PyEval_ReleaseThread(tcur);
PyEval_SaveThread();
}
#endif /* WITH_THREAD */