[issue34663] Support POSIX_SPAWN_USEVFORK flag in posix_spawn

Ronald Oussoren report at bugs.python.org
Wed Sep 19 06:43:03 EDT 2018


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

Note that the POSIX_SPAWN_USEVFORK may not do anything at this point (see the link in my previous message, if I read the code correctly POSIX_SPAWN_USEVFORK is no longer used in the implementation of posix_spawn(3)).

Even if it did do something the user that uses the flag needs to evaluate whether or not it is safe to do so, and this requires inspecting the os.posix_spawn implementation and not just the Python code that calls it. 

IMHO we shouldn't expose or use this flag.

If it were useful to do anything with the flag the os.posix_spawn implementation should do so automatically when it is safe to do so (which may require additional steps around calling posix_spawn(3)).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34663>
_______________________________________


More information about the Python-bugs-list mailing list