summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2005-04-24 19:32:34 (GMT)
committerMichael W. Hudson <mwh@python.net>2005-04-24 19:32:34 (GMT)
commit14ef205309bf019c28fea1c253bf6b42aba117fe (patch)
treed255f8d570d5f7ac302b9ce007f537bb38ac3aa7 /Python
parent4d3fec604dadbffe5211c6ca21fa05c72cbceefd (diff)
downloadcpython-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.c2
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 */