A patch for 1.1 support provided by Bill Burke.
roberts [Sat, 12 Dec 1998 04:07:46 +0000 (04:07 +0000)]
Modified Files: FCGIInterface.java

java/src/FCGIInterface.java

index 5870a25..46471a5 100644 (file)
@@ -128,11 +128,11 @@ public int FCGIaccept() {
                /*
                * redirect stdin, stdout and stderr to fcgi socket 
                */
-               System.in = new BufferedInputStream(request.inStream, 8192);
-               System.out = new PrintStream(new BufferedOutputStream(
-                                               request.outStream, 8192));
-               System.err = new PrintStream(new BufferedOutputStream(
-                                               request.errStream, 512));
+               System.setIn(new BufferedInputStream(request.inStream, 8192));
+               System.setOut(new PrintStream(new BufferedOutputStream(
+                                             request.outStream, 8192)));
+               System.setErr(new PrintStream(new BufferedOutputStream(
+                                                                     request.errStream, 512)));
                System.setProperties(request.params);
                }
        return 0;