➜

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.

作者 vstinner
收信人 vstinner
日期 2020-04-30.20:00:56
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1588276857.13.0.360538290387.issue40453@roundup.psfhosted.org>
In-reply-to
内容
I propose to add PyConfig._isolated_interpreter configuration parameter to disallow threads, subprocesses and fork in a subinterpreter.

_xxsubinterpreter.create() gets a new keyword-only isolated=True parameter to opt-in for not isolated mode, which is the current behavior of Py_NewInterpreter(). For example, mod_wsgi would continue to run in "non isolated" mode.

Attached PR implements this change. With the change, os.fork() is allowed again in "non isolated" subinterpreters (like mod_wsgi). os.fork() was disallowed in subinterpreters in Python 3.8, but subprocess was still allowed.
历史
日期 用户 动作 参数
2020-04-30 20:00:57vstinner修改recipients: + vstinner
2020-04-30 20:00:57vstinner修改messageid: <1588276857.13.0.360538290387.issue40453@roundup.psfhosted.org>
2020-04-30 20:00:57vstinner链接issue40453 messages
2020-04-30 20:00:56vstinner创建