diff --git a/eventlet/green/subprocess.py b/eventlet/green/subprocess.py index 50e119b..c1cc9b3 100644 --- a/eventlet/green/subprocess.py +++ b/eventlet/green/subprocess.py @@ -27,7 +27,7 @@ def __init__(self, args, bufsize=0, *argss, **kwds): # 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__