Georg Brandl added the comment:
#9905 has a similar patch and adds tests as well.
--
nosy: +georg.brandl
resolution: -> duplicate
status: open -> closed
superseder: -> subprocess.Popen fails with stdout=PIPE, stderr=PIPE if
standard descriptors (0, 1, 2) are closed.
Changes by Éric Araujo :
--
keywords: +needs review
nosy: +astrand
stage: -> patch review
title: [includes patch] subprocess module closes standard file descriptors when
it should not -> subprocess closes standard file descriptors when it should not
versions: +Python 2.7, Python 3.1, P