
June 21, 2015
10:41 p.m.
On Sun, 21 Jun 2015 14:08:09 -0700 Andrew Barnert via Python-ideas <python-ideas@python.org> wrote:
First, a minor question: instead of banning fork entirely within subinterpreters, why not just document that it is illegal to do anything between fork and exec in a subinterpreters, except for a very small (but possibly extensible) subset of Python?
It's actually already the case in POSIX that most things are illegal between fork() and exec(). However, to make fork() practical, many libraries or frameworks tend to ignore those problems deliberately. Regards Antoine.