Georg Brandl ge...@python.org added the comment:
Superseded by #10806.
--
nosy: +georg.brandl
resolution: - duplicate
status: open - closed
superseder: - Subprocess error if fds 0,1,2 are closed
___
Python tracker rep...@bugs.python.org
Mark Lawrence breamore...@yahoo.co.uk added the comment:
The patch is small, is there any solid reason for not committing it?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6610
Antoine Pitrou pit...@free.fr added the comment:
Would the test still be correct if it didn't close stderr? I feel closing
stderr is very bad from a debuggability standpoint.
--
___
Python tracker rep...@bugs.python.org
Yaniv Aknin yaniv.ak...@gmail.com added the comment:
I think if the test is conducted without closing stderr, it will only check
that stdin/stdout are handled correctly (you could assume that if one handled
stdin/stdout correctly, they did the same with stderr).
However, since I've used a
Gregory P. Smith g...@krypto.org added the comment:
Thanks for the test! I'll take a look and likely commit this later.
--
assignee: - gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6610
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +astrand, pitrou
stage: needs patch - patch review
versions: -Python 3.0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6610
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6610
___
___
Python-bugs-list
Yaniv Aknin yaniv.ak...@gmail.com added the comment:
It seems to me that subprocess is protected against this flaw. Python 2.x has a
pure-Python implementation of the child logic (which is susceptible to an
unrelated issue). Python 3.x has a C implementation which falls back to
pure-Python if
New submission from Christian Heimes li...@cheimes.de:
The subprocess module may suffer from a minor design flaw that is
described at http://unixwiz.net/techtips/remap-pipe-fds.html under the
heading Descriptor Debacle. The problem can occur under rare
conditions when a subprocess is created