diff options
-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 f6d0db4..8a6ba70 100644 --- a/Lib/http/server.py +++ b/Lib/http/server.py @@ -1131,6 +1131,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) |