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 sbt
Recipients doerwalter, sbt
Date 2012-07-20.17:45:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342806334.74.0.710325555785.issue15408@psf.upfronthosting.co.za>
In-reply-to
Content
The problem is that os.wait() is returning when the wrong process exits.

You can fix this by specifying the pid you are waiting for by doing "os.waitpid(pid, 0)" instead of "os.wait()".

Arguably os.popen() and subprocess.communicate() etc should always reap the pid of the process they started.
History
Date User Action Args
2012-07-20 17:45:34sbtsetrecipients: + sbt, doerwalter
2012-07-20 17:45:34sbtsetmessageid: <1342806334.74.0.710325555785.issue15408@psf.upfronthosting.co.za>
2012-07-20 17:45:34sbtlinkissue15408 messages
2012-07-20 17:45:33sbtcreate