Include stderr in response from exec

This commit is contained in:
Ian Gulliver
2016-05-20 22:40:48 +00:00
parent f60527448e
commit 05fbf92c0a

View File

@@ -281,7 +281,8 @@ class HTTPRequestHandler(object):
start_response('200 OK', [])
proc = subprocess.Popen(
[handler, arg],
stdout=subprocess.PIPE)
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
while True:
block = proc.stdout.read(self._BLOCK_SIZE)
if len(block) == 0: