Mercurial > cpython-lru_cache-weakref
diff Lib/http/server.py @ 65965:b0249d0839ed
Close subprocess pipes in the non-UNIX section of run_cgi.
Clears a number of ResourceWarnings in test_httpservers.
| author | Brian Curtin <brian.curtin@gmail.com> |
|---|---|
| date | Fri, 05 Nov 2010 15:04:48 +0000 |
| parents | 5633af590057 |
| children | 9717153d558d |
line wrap: on
line diff
--- a/Lib/http/server.py Fri Nov 05 14:48:35 2010 +0000 +++ b/Lib/http/server.py Fri Nov 05 15:04:48 2010 +0000 @@ -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)
