Atle Solbakken <atle.solbak...@gmail.com> added the comment:
By "manually" clearing/deleting any interpreter states from non-main thread states prior to running (PyOS_AfterForkChild()), the deadlock does not occur. // With tstate_orig being a PyThreadState which is not main: PyInterpreterState *istate = tstate_orig->interp; PyInterpreterState_Clear(istate); PyInterpreterState_Delete(istate); // Then run PyOS_AfterFork_Child(); ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39958> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com