mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user