Fix for SF bug 570678 (can't flush read-only file on Mac OS X).

This commit is contained in:
Guido van Rossum 2002-08-01 21:12:35 +00:00
parent f4be427c46
commit b54c27c861

View file

@ -193,7 +193,6 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
if '=' not in decoded_query: if '=' not in decoded_query:
args.append(decoded_query) args.append(decoded_query)
nobody = nobody_uid() nobody = nobody_uid()
self.rfile.flush() # Always flush before forking
self.wfile.flush() # Always flush before forking self.wfile.flush() # Always flush before forking
pid = os.fork() pid = os.fork()
if pid != 0: if pid != 0: