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
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
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9905
___
___
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
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',