[Python-checkins] r86197 - python/branches/release27-maint/Lib/CGIHTTPServer.py

brian.curtin python-checkins at python.org
Fri Nov 5 16:12:48 CET 2010


Author: brian.curtin
Date: Fri Nov  5 16:12:47 2010
New Revision: 86197

Log:
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.
........


Modified:
   python/branches/release27-maint/Lib/CGIHTTPServer.py

Modified: python/branches/release27-maint/Lib/CGIHTTPServer.py
==============================================================================
--- python/branches/release27-maint/Lib/CGIHTTPServer.py	(original)
+++ python/branches/release27-maint/Lib/CGIHTTPServer.py	Fri Nov  5 16:12:47 2010
@@ -289,6 +289,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)


More information about the Python-checkins mailing list