From: Benjamin Peterson Date: Tue, 21 Feb 2017 07:43:15 +0000 (-0800) Subject: reinit the TLS before anything else (#130) X-Git-Tag: v2.7.14rc1~267 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9a75744eeaa882e6203cdb864289a6534ac86c8;p=python reinit the TLS before anything else (#130) PyEval_ReInitThread can run arbitrary Python code, which really ought to have the TLS initialized. --- diff --git a/Parser/intrcheck.c b/Parser/intrcheck.c index 1c888a598e..5844a9a85e 100644 --- a/Parser/intrcheck.c +++ b/Parser/intrcheck.c @@ -172,7 +172,7 @@ void PyOS_AfterFork(void) { #ifdef WITH_THREAD - PyEval_ReInitThreads(); PyThread_ReInitTLS(); + PyEval_ReInitThreads(); #endif }