]> git.sur5r.net Git - bacula/bacula/commitdiff
Remove closelog() in bpipe fixes bug #1536
authorKern Sibbald <kern@sibbald.com>
Fri, 16 Apr 2010 18:37:16 +0000 (20:37 +0200)
committerKern Sibbald <kern@sibbald.com>
Fri, 16 Apr 2010 18:37:32 +0000 (20:37 +0200)
bacula/src/lib/bpipe.c

index 89917741953d020c6c2d17347191704df8845f79..2b44096d84d5bfc09cf5f2883257e4927bd50b9f 100644 (file)
@@ -135,7 +135,8 @@ BPIPE *open_bpipe(char *prog, int wait, const char *mode)
          dup2(readp[1], 1);           /* dup our read to his stdout */
          dup2(readp[1], 2);           /*   and his stderr */
       }
-      closelog();                     /* close syslog if open */
+/* Note, the close log cause problems, see bug #1536 */
+/*    closelog();                        close syslog if open */
       for (i=3; i<=32; i++) {         /* close any open file descriptors */
          close(i);
       }