summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-11-05 15:08:19 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-11-05 15:08:19 (GMT)
commit938ece71527203bf0cc43283e531e21da2f1de35 (patch)
tree9730d24541dfc9b68a243096134b77c53d01eb1c
parent18716a3a2384edbdbb40d4592dc3936eadaf0c9d (diff)
downloadcpython-938ece71527203bf0cc43283e531e21da2f1de35.zip
cpython-938ece71527203bf0cc43283e531e21da2f1de35.tar.gz
cpython-938ece71527203bf0cc43283e531e21da2f1de35.tar.bz2
Merged revisions 86195 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86195 | brian.curtin | 2010-11-05 10:04:48 -0500 (Fri, 05 Nov 2010) | 3 lines Close subprocess pipes in the non-UNIX section of run_cgi. Clears a number of ResourceWarnings in test_httpservers. ........
-rw-r--r--Lib/http/server.py2
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)