mirror of
https://github.com/python/cpython.git
synced 2026-01-28 21:55:51 +00:00
When os.fork() is called (on platforms that support it) all threads but the current one are destroyed in the child process. Consequently we must ensure that all but the associated interpreter are likewise destroyed. The main interpreter is critical for runtime operation, so we must ensure that fork only happens in the main interpreter. https://bugs.python.org/issue34651
Miscellaneous source files for the main Python shared library