diff options
| author | Michael W. Hudson <mwh@python.net> | 2005-04-18 08:46:17 +0000 |
|---|---|---|
| committer | Michael W. Hudson <mwh@python.net> | 2005-04-18 08:46:17 +0000 |
| commit | 4e7f43749ffd4e5c5a7d307ad3339e84a172d4f0 (patch) | |
| tree | 513ed038326d59bdf9e26f1dfc289aa63ac98e53 /Python/pystate.c | |
| parent | d5dc7121bf62ddae35e06243c6f83af3d7e90a11 (diff) | |
| download | cpython-4e7f43749ffd4e5c5a7d307ad3339e84a172d4f0.tar.gz | |
Fix:
[ 1176893 ] Readline segfault
by unsilly-ing PyGILState_Release().
Backport candidate.
Diffstat (limited to 'Python/pystate.c')
| -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 255cf7e86e..abca8ddfdf 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 */ |
