New submission from STINNER Victor <victor.stin...@haypocalc.com>:

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!

----------
components: Library (Lib), Windows
files: subprocess_close_pipes.patch
keywords: patch
messages: 124547
nosy: haypo
priority: normal
severity: normal
status: open
title: subprocess.communicate() doesn't close pipes on Windows
versions: Python 3.2
Added file: http://bugs.python.org/file20146/subprocess_close_pipes.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10763>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to