Gregory P. Smith <> added the comment:

A raw os.posix_spawn() API has been added to 3.7.

vfork() would likely all sorts of other problems.  It is extremely complicated 
and implementations have bugs.  CERT says never to use it.

When forking or threading is involved, you are already always at the mercy of 
all other code running in your process.  This is not new.

That some C/C++ libraries misuse pthread_atfork() is not a surprise.  But the 
bug is theirs.

We should not try to paper over others C and system call mistakes.  Their code 
needs fixing.


Python tracker <>
Python-bugs-list mailing list

Reply via email to