[issue13792] The "os.execl" call doesn't give programs exit code

Amaury Forgeot d'Arc report at bugs.python.org
Tue Jan 17 11:04:29 CET 2012


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

No. On Windows the only way to start a new executable is to create a new process (with the CreateProcess function, which all spawn* and exec* functions ultimately call), and this yields a new PID.
This is a fundamental difference with unix, where the only way to create a process is to clone the current one with fork().

And yes, this makes launchers more difficult to write on Windows.  For a discussion see the paragraph "Process Launching" in http://www.python.org/dev/peps/pep-0397/

----------
nosy: +amaury.forgeotdarc
resolution:  -> invalid
status: open -> pending

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13792>
_______________________________________


More information about the Python-bugs-list mailing list