[issue9074] [includes patch] subprocess module closes standard file descriptors when it should not

2010-06-24 Thread Keith Rarick
Keith Rarick added the comment: There was a typo in my description of the patch. It should read: I've attached a patch to fix this. It simply adds 2 and *1* to the list of fds not to close for c2pwrite and errwrite, respectively. -- ___ P

[issue9074] [includes patch] subprocess module closes standard file descriptors when it should not

2010-06-24 Thread Keith Rarick
New submission from Keith Rarick : Transcript to reproduce in Python 2.6.5: >>> import subprocess, sys >>> subprocess.call(('echo', 'foo'), stderr=sys.stdout) echo: write: Bad file descriptor 1 >>> Expected behavior: >>> import sub