diff roundup/scripts/roundup_server.py @ 4344:85b00a3820b3

Fix thread safety with stdin in roundup-server
author Richard Jones <richard@users.sourceforge.net>
date Tue, 02 Feb 2010 05:00:42 +0000
parents 236939e4137b
children 207499c0a3ed
line wrap: on
line diff
--- a/roundup/scripts/roundup_server.py	Tue Feb 02 04:59:20 2010 +0000
+++ b/roundup/scripts/roundup_server.py	Tue Feb 02 05:00:42 2010 +0000
@@ -188,8 +188,6 @@
         """ Execute the CGI command. Wrap an innner call in an error
             handler so all errors can be caught.
         """
-        save_stdin = sys.stdin
-        sys.stdin = self.rfile
         try:
             self.inner_run_cgi()
         except client.NotFound:
@@ -226,7 +224,6 @@
                     # out to the logfile
                     print 'EXCEPTION AT', ts
                     traceback.print_exc()
-        sys.stdin = save_stdin
 
     do_GET = do_POST = do_HEAD = run_cgi
 

Roundup Issue Tracker: http://roundup-tracker.org/