Author: mturk
Date: Tue Jan 18 10:05:15 2011
New Revision: 1060287

URL: http://svn.apache.org/viewvc?rev=1060287&view=rev
Log:
Oops. Fix typo. That's why I have style guide which presumes boolean operation 
on integers :(

Modified:
    commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c

Modified: commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c
URL: 
http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c?rev=1060287&r1=1060286&r2=1060287&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c (original)
+++ commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c Tue Jan 18 
10:05:15 2011
@@ -930,8 +930,10 @@ static void set_output(char *outfile, ch
             log_error("cannot create logger process: %s", strerror(errno));
         }
         else {
-            if (pid == 0) {
-                /* Child process */
+            if (pid != 0) {
+                /* Parent process.
+                 * Close child pipe endpoints.
+                 */
                 logger_pid = pid;
                 if (out_pipe[0] != -1) {
                     close(out_pipe[0]);


Reply via email to