[issue9905] subprocess.Popen fails with stdout=PIPE, stderr=PIPE if standard descriptors (0, 1, 2) are closed.

2011-01-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed in issue10806. -- nosy: +pitrou resolution: - duplicate status: open - closed superseder: - Subprocess error if fds 0,1,2 are closed ___ Python tracker rep...@bugs.python.org

[issue9905] subprocess.Popen fails with stdout=PIPE, stderr=PIPE if standard descriptors (0, 1, 2) are closed.

2011-01-02 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: OK here is a patch + tests. Basically, it makes sure that the fd that it is closing is not 0, 1 or 2. I've set it for 2.7, 3.1 and 3.2. -- keywords: +patch nosy: +rosslagerwall versions: +Python 2.7, Python 3.1, Python 3.2

[issue9905] subprocess.Popen fails with stdout=PIPE, stderr=PIPE if standard descriptors (0, 1, 2) are closed.

2010-09-23 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9905 ___ ___

[issue9905] subprocess.Popen fails with stdout=PIPE, stderr=PIPE if standard descriptors (0, 1, 2) are closed.

2010-09-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: issue6610 looks very similar. issue9074 may also be related. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9905

[issue9905] subprocess.Popen fails with stdout=PIPE, stderr=PIPE if standard descriptors (0, 1, 2) are closed.

2010-09-20 Thread Thomas Claveirole
New submission from Thomas Claveirole thomas.claveir...@gmail.com: Hello, Here is a code that exhibits an invalid behavior (Python 2.6.6): ---8--- import subprocess, os os.close(0) # Works correctly if any of these two are commented out. os.close(2) print subprocess.Popen('echo foo2',