]> granicus.if.org Git - python/commit
[3.6] bpo-30395 _PyGILState_Reinit deadlock fix (GH-1734) (#1740)
authorŁukasz Langa <lukasz@langa.pl>
Tue, 23 May 2017 05:23:05 +0000 (22:23 -0700)
committerGitHub <noreply@github.com>
Tue, 23 May 2017 05:23:05 +0000 (22:23 -0700)
commitd29feccec3ce3dcd9ab3100f8956171c70ec3027
tree20d4b6ea09a7663a3bae3313f6ca96f109258d92
parent1398b1bc7d80df5bde17041e7ec0a3bdbf54b19e
[3.6] bpo-30395 _PyGILState_Reinit deadlock fix (GH-1734) (#1740)

head_lock could be held by another thread when fork happened. We should
reset it to avoid deadlock.
(cherry picked from commit f82c951d1c5416f3550d544e50ff5662d3836e73)
Misc/ACKS
Python/pystate.c