Skip to content

Commit db44b88

Browse files
committed
reinit the TLS before anything else
PyEval_ReInitThread can run arbitrary Python code, which really ought to have the TLS initialized.
1 parent 0f48ecd commit db44b88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parser/intrcheck.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ void
172172
PyOS_AfterFork(void)
173173
{
174174
#ifdef WITH_THREAD
175-
PyEval_ReInitThreads();
176175
PyThread_ReInitTLS();
176+
PyEval_ReInitThreads();
177177
#endif
178178
}

0 commit comments

Comments
 (0)