commit | cbad4df179456a7e4116d29358445e352c3a3d56 | [log] [tgz] |
---|---|---|
author | Brian Curtin <brian.curtin@gmail.com> | Fri Nov 05 15:04:48 2010 +0000 |
committer | Brian Curtin <brian.curtin@gmail.com> | Fri Nov 05 15:04:48 2010 +0000 |
tree | 3363e86f63ef30b4f205736e3bf1a54833ad83e5 | |
parent | 69cd87b5fa284a6ec386d42aa3bcf8e0174ca35b [diff] |
Close subprocess pipes in the non-UNIX section of run_cgi. Clears a number of ResourceWarnings in test_httpservers.
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 @@ 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)