[pypy-svn] r64363 - pypy/trunk/lib-python/modified-2.5.2
iko at codespeak.net
iko at codespeak.net
Sun Apr 19 14:47:41 CEST 2009
Author: iko
Date: Sun Apr 19 14:47:39 2009
New Revision: 64363
Modified:
pypy/trunk/lib-python/modified-2.5.2/subprocess.py
Log:
Don't close the stdout handle if it is duped to stderr
Modified: pypy/trunk/lib-python/modified-2.5.2/subprocess.py
==============================================================================
--- pypy/trunk/lib-python/modified-2.5.2/subprocess.py (original)
+++ pypy/trunk/lib-python/modified-2.5.2/subprocess.py Sun Apr 19 14:47:39 2009
@@ -725,7 +725,7 @@
errread = errread.Detach()
errread = msvcrt.open_osfhandle(errread, 0)
elif stderr == STDOUT:
- errwrite = c2pwrite
+ errwrite = c2pwrite.handle # pass id to not close it
elif isinstance(stderr, int):
errwrite = msvcrt.get_osfhandle(stderr)
else:
More information about the Pypy-commit
mailing list