summaryrefslogtreecommitdiffstats
path: root/Lib/CGIHTTPServer.py
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-11-05 15:12:47 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-11-05 15:12:47 (GMT)
commit3606f9570ea8e40ad687d302dd7eb85a051eb18f (patch)
tree307f1fb9321c030d1546306387dfaa17ca4f5b94 /Lib/CGIHTTPServer.py
parentbe80ab4b83f5b50eaba36bd6f7a09f8cb1f68c6a (diff)
downloadcpython-3606f9570ea8e40ad687d302dd7eb85a051eb18f.zip
cpython-3606f9570ea8e40ad687d302dd7eb85a051eb18f.tar.gz
cpython-3606f9570ea8e40ad687d302dd7eb85a051eb18f.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. ........
Diffstat (limited to 'Lib/CGIHTTPServer.py')
-rw-r--r--Lib/CGIHTTPServer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py
index ed37348..13ca0b5 100644
--- a/Lib/CGIHTTPServer.py
+++ b/Lib/CGIHTTPServer.py
@@ -289,6 +289,8 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.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)