This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 pitrou
收信人 davin, iritkatriel, moi90, pitrou
日期 2021-06-26.08:10:30
SpamBayes Score -1.0
Marked as misclassified
Message-id <1624695031.6.0.595884790976.issue41539@roundup.psfhosted.org>
In-reply-to
内容
This is just issue6721 again.

The workaround is easy: just add `multiprocessing.set_start_method("forkserver")` at the start of your program.

Also, this is more or less documented, though quite tersely:
"""Note that safely forking a multithreaded process is problematic.""
https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods
历史
日期 用户 动作 参数
2021-06-26 08:10:31pitrou修改recipients: + pitrou, davin, iritkatriel, moi90
2021-06-26 08:10:31pitrou修改messageid: <1624695031.6.0.595884790976.issue41539@roundup.psfhosted.org>
2021-06-26 08:10:31pitrou链接issue41539 messages
2021-06-26 08:10:30pitrou创建