[New-bugs-announce] [issue10763] subprocess.communicate() doesn't close pipes on Windows
report at bugs.python.org
Thu Dec 23 12:59:28 CET 2010
New submission from STINNER Victor <victor.stinner at 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
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 <report at bugs.python.org>
More information about the New-bugs-announce