Comment 3 for bug 719765

Revision history for this message
Christian Berendt (berendt) wrote :

for users of other distributions:

you have to apply this patch to python-eventlet:

Description: Prevent subprocess module from rewrapping GreenPipes
Author: Soren Hansen <email address hidden>
Forwarded: https://bitbucket.org/which_linden/eventlet/issue/77/subprocess-module-fails-if-os-module-is
Last-Update: 2011-02-14

Index: python-eventlet-0.9.14/eventlet/green/subprocess.py
===================================================================
--- python-eventlet-0.9.14.orig/eventlet/green/subprocess.py 2011-02-14 11:31:39.917609581 +0100
+++ python-eventlet-0.9.14/eventlet/green/subprocess.py 2011-02-14 11:31:45.767618158 +0100
@@ -27,7 +27,7 @@
             # eventlet.processes.Process.run() method.
             for attr in "stdin", "stdout", "stderr":
                 pipe = getattr(self, attr)
- if pipe is not None:
+ if pipe is not None and not type(pipe) == greenio.GreenPipe:
                     wrapped_pipe = greenio.GreenPipe(pipe, pipe.mode, bufsize)
                     setattr(self, attr, wrapped_pipe)
         __init__.__doc__ = subprocess_orig.Popen.__init__.__doc__