From: Guido van Rossum Date: Thu, 1 Aug 2002 21:12:35 +0000 (+0000) Subject: Fix for SF bug 570678 (can't flush read-only file on Mac OS X). X-Git-Tag: v2.3c1~4799 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b54c27c861ad71fc090939da4c5fdb4f5e3bc67c;p=thirdparty%2FPython%2Fcpython.git 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 fbd82c9418b1..0279117c7ad6 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: