0001-agent-redirect-subprocess-fd-to-parent-21995.patch
hobo/agent/worker/services.py | ||
---|---|---|
83 | 83 |
cmd_process = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, |
84 | 84 |
stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
85 | 85 |
stdout, stderr = cmd_process.communicate(input=json.dumps(environment)) |
86 |
sys.stdout.write(stdout) |
|
87 |
sys.stderr.write(stderr) |
|
86 | 88 |
if cmd_process.returncode != 0: |
87 | 89 |
raise RuntimeError('command "%s" failed: %r %r' % (cmd, stdout, stderr)) |
88 | 90 | |
... | ... | |
106 | 108 |
except OSError: |
107 | 109 |
return |
108 | 110 |
stdout, stderr = cmd_process.communicate(input=json.dumps(data)) |
111 |
sys.stdout.write(stdout) |
|
112 |
sys.stderr.write(stderr) |
|
109 | 113 |
if cmd_process.returncode != 0: |
110 | 114 |
raise RuntimeError('command "%s" failed: %r %r' % (cmd, stdout, stderr)) |
111 | 115 | |
112 |
- |