diff options
author | Michael W. Hudson <mwh@python.net> | 2005-04-24 19:32:34 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2005-04-24 19:32:34 (GMT) |
commit | 14ef205309bf019c28fea1c253bf6b42aba117fe (patch) | |
tree | d255f8d570d5f7ac302b9ce007f537bb38ac3aa7 /Python | |
parent | 4d3fec604dadbffe5211c6ca21fa05c72cbceefd (diff) | |
download | cpython-14ef205309bf019c28fea1c253bf6b42aba117fe.zip cpython-14ef205309bf019c28fea1c253bf6b42aba117fe.tar.gz cpython-14ef205309bf019c28fea1c253bf6b42aba117fe.tar.bz2 |
Backport my recent fix (rev. 2.40 of Python/pystate.c):
Fix:
[ 1176893 ] Readline segfault
by unsilly-ing PyGILState_Release().
Backport candidate.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pystate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 255cf7e..abca8dd 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -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 */ |