jfclere commented on code in PR #264:
URL: https://github.com/apache/commons-daemon/pull/264#discussion_r2097733171


##########
src/test/java/org/apache/commons/daemon/ProcrunDaemon.java:
##########
@@ -77,6 +77,18 @@ public static void ProcessClient(Socket clientSocket) {
                         System.out.println(ex);
                     }
                     System.exit(0);
+                } else if (buf[0] == '5') {
+                    System.out.println("5");
+                    PrintStream myout = System.out;
+                    System.setOut(originalStdout);
+                    System.out.println("Using System.out");
+                    System.out.println("5");
+                    System.out.println("Back to redirection");
+                    System.setOut(myout);

Review Comment:
   Because the stdout is redirected to another file in ProcrunDaemon:
   
https://github.com/apache/commons-daemon/blob/05cf1a47c4974292b613b959b391586d284823e5/src/test/java/org/apache/commons/daemon/ProcrunDaemon.java#L152



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to