[docs] [issue19124] os.execv executes in background on Windows

Eryk Sun report at bugs.python.org
Tue May 15 21:54:36 EDT 2018

Eryk Sun <eryksun at gmail.com> added the comment:

The exec functions provided by the Windows C runtime really are practically useless, due to creating an orphaned process, disrupting synchronous operation, and returning the wrong status code. It might be more useful for Python 3.7.x to implement an internal win32_execv[e] function that calls _wspawnv[e] with _P_NOWAIT mode. Assign the child process to a silent-breakaway, kill-on-close Job. Wait for it to end, and exit with the child's status code.

nosy: +eryksun
versions: +Python 3.7, Python 3.8 -Python 2.7, Python 3.3, Python 3.4

Python tracker <report at bugs.python.org>

More information about the docs mailing list