[issue12607] subprocess(stdout=..., stderr=sys.stdout) breaks stderr for child

Ross Lagerwall report at bugs.python.org
Fri Jul 22 13:26:17 CEST 2011


Ross Lagerwall <rosslagerwall at gmail.com> added the comment:

It is indeed a problem.

It seems like the problem comes about due to the "swapping" of fds.
i.e. using stdout as stderr. The reverse appears to work due to the order in which the dup() calls are performed.

Attached is a patch which fixes the issue.

----------
keywords: +patch
nosy: +rosslagerwall
Added file: http://bugs.python.org/file22716/i12607.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12607>
_______________________________________


More information about the Python-bugs-list mailing list