This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Amaury.Forgeot.d'Arc
Recipients Amaury.Forgeot.d'Arc, brian.curtin, kayhayen, pitrou, tim.golden
Date 2012-01-17.07:26:40
SpamBayes Score 9.751472e-11
Marked as misclassified No
Message-id <CAGmFidYg-YEKjbeGgZK5L0+4KnKk7gAX2f4Z2ShBd1T=WAW32A@mail.gmail.com>
In-reply-to <1326668704.55.0.266446288638.issue13792@psf.upfronthosting.co.za>
Content
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.
History
Date User Action Args
2012-01-17 07:26:41Amaury.Forgeot.d'Arcsetrecipients: + Amaury.Forgeot.d'Arc, pitrou, tim.golden, brian.curtin, kayhayen
2012-01-17 07:26:41Amaury.Forgeot.d'Arclinkissue13792 messages
2012-01-17 07:26:40Amaury.Forgeot.d'Arccreate