Kaydet (Commit) d9a75744 authored tarafından Benjamin Peterson's avatar Benjamin Peterson Kaydeden (comit) GitHub

reinit the TLS before anything else (#130)

PyEval_ReInitThread can run arbitrary Python code, which really ought to have
the TLS initialized.
üst c0b336e0
...@@ -172,7 +172,7 @@ void ...@@ -172,7 +172,7 @@ void
PyOS_AfterFork(void) PyOS_AfterFork(void)
{ {
#ifdef WITH_THREAD #ifdef WITH_THREAD
PyEval_ReInitThreads();
PyThread_ReInitTLS(); PyThread_ReInitTLS();
PyEval_ReInitThreads();
#endif #endif
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment