diff options
Diffstat (limited to 'Lib/http/server.py')
-rw-r--r-- | Lib/http/server.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/http/server.py b/Lib/http/server.py index a4acff0..c5b00d6 100644 --- a/Lib/http/server.py +++ b/Lib/http/server.py @@ -1096,6 +1096,8 @@ class CGIHTTPRequestHandler(SimpleHTTPRequestHandler): self.wfile.write(stdout) if stderr: self.log_error('%s', stderr) + p.stderr.close() + p.stdout.close() status = p.returncode if status: self.log_error("CGI script exit status %#x", status) |