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
69cd87b5fa
commit
cbad4df179
|
@ -1131,6 +1131,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)
|
||||
|
|
Loading…
Reference in New Issue