Le 16 janv. 2012 00:09, "Kay Hayen" <rep...@bugs.python.org> a écrit : > I am the author of the Python compiler Nuitka. It has the ability to immediately execute the created executable file. For that I am using "os.execl" to immediately replace the compiler and run the freshly created binary instead. > > This worked well so far, but as of late, I am also checking the exit codes, and it turns out that even for failing programs, the exit code is "0" on Windows, even though the compiled binary is exiting with "1".
This is expected behavior on Windows: exec does not replace the existing process like with Unix, it creates a new process and exit(0) the caller.
_______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com