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 vstinner
Recipients vstinner
Date 2010-12-23.11:59:26
SpamBayes Score 1.2988752e-06
Marked as misclassified No
Message-id <1293105568.33.0.901642583653.issue10763@psf.upfronthosting.co.za>
In-reply-to
Content
If more than one file (stdin, stdout and stderr) are pipes, Popen.communicate() uses threads calling _readerthread() on each pipe. But this method doesn't close the pipes, whereas all other communicate implementations (select, poll and the optimization if there is only one pipe) do close all pipes.

Attached patch fixes this issue.

Thanks Antoine for your nice ResourceWarning patch!
History
Date User Action Args
2010-12-23 11:59:28vstinnersetrecipients: + vstinner
2010-12-23 11:59:28vstinnersetmessageid: <1293105568.33.0.901642583653.issue10763@psf.upfronthosting.co.za>
2010-12-23 11:59:26vstinnerlinkissue10763 messages
2010-12-23 11:59:26vstinnercreate