From: Guido van Rossum Date: Thu, 1 Aug 2002 21:14:33 +0000 (+0000) Subject: Backport: X-Git-Tag: v2.2.2b1~245 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2bf28655da4950cb4583228852a939af98c18583;p=thirdparty%2FPython%2Fcpython.git Backport: Fix for SF bug 570678 (can't flush read-only file on Mac OS X). --- diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py index 7a7e0754f447..76570d25925e 100644 --- a/Lib/CGIHTTPServer.py +++ b/Lib/CGIHTTPServer.py @@ -193,7 +193,6 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): if '=' not in decoded_query: args.append(decoded_query) nobody = nobody_uid() - self.rfile.flush() # Always flush before forking self.wfile.flush() # Always flush before forking pid = os.fork() if pid != 0: