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.forgeotdarc
Recipients amaury.forgeotdarc, techtonik
Date 2010-07-03.12:16:34
SpamBayes Score 0.03245514
Marked as misclassified No
Message-id <1278159396.48.0.197344887491.issue9148@psf.upfronthosting.co.za>
In-reply-to
Content
on Windows, exec() does not really replace the current process. It creates a new process (with a new pid), and exits the current one.

Hence the calling program only sees that the script has terminated.

I don't see any easy solution on Windows, except than using subprocess.Popen(), and exit the script when the subprocess terminates.
History
Date User Action Args
2010-07-03 12:16:36amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, techtonik
2010-07-03 12:16:36amaury.forgeotdarcsetmessageid: <1278159396.48.0.197344887491.issue9148@psf.upfronthosting.co.za>
2010-07-03 12:16:34amaury.forgeotdarclinkissue9148 messages
2010-07-03 12:16:34amaury.forgeotdarccreate