Ronald Oussoren <ronaldousso...@mac.com> added the comment:

I get the impression that go uses vfork on Linux, not posix_spawn, because go 
doesn't use libc (based on reading the referenced issue, not on deep knowledge 
of go and its implementation).

I do wonder why glibc's implementation of posix_spawn doesn't use vfork more 
often, and in which cases it is safe to explicitly use vfork even when glibc 
won't do so by default.

Enabling the use of vfork without determining when it safe to do so is asking 
for problems, and hard to debug/reproduce ones at that (due to vfork 
semantics).  Adding a "use_vfork" keyword argument to posix_spawn is IMHO not 
the right way to go, it would be better to determine when using vfork is safe 
and then unconditionally enable it.  Otherwise users will have to do the 
research.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34663>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to