mirror of
https://github.com/python/cpython.git
synced 2025-08-16 06:40:56 +00:00
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. ........
This commit is contained in:
parent
be80ab4b83
commit
3606f9570e
1 changed files with 2 additions and 0 deletions
|
@ -289,6 +289,8 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
||||||
self.wfile.write(stdout)
|
self.wfile.write(stdout)
|
||||||
if stderr:
|
if stderr:
|
||||||
self.log_error('%s', stderr)
|
self.log_error('%s', stderr)
|
||||||
|
p.stderr.close()
|
||||||
|
p.stdout.close()
|
||||||
status = p.returncode
|
status = p.returncode
|
||||||
if status:
|
if status:
|
||||||
self.log_error("CGI script exit status %#x", status)
|
self.log_error("CGI script exit status %#x", status)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue