Include stderr in response from exec
This commit is contained in:
@@ -281,7 +281,8 @@ class HTTPRequestHandler(object):
|
|||||||
start_response('200 OK', [])
|
start_response('200 OK', [])
|
||||||
proc = subprocess.Popen(
|
proc = subprocess.Popen(
|
||||||
[handler, arg],
|
[handler, arg],
|
||||||
stdout=subprocess.PIPE)
|
stdout=subprocess.PIPE,
|
||||||
|
stderr=subprocess.STDOUT)
|
||||||
while True:
|
while True:
|
||||||
block = proc.stdout.read(self._BLOCK_SIZE)
|
block = proc.stdout.read(self._BLOCK_SIZE)
|
||||||
if len(block) == 0:
|
if len(block) == 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user