From: Kern Sibbald Date: Fri, 16 Apr 2010 18:37:16 +0000 (+0200) Subject: Remove closelog() in bpipe fixes bug #1536 X-Git-Tag: Release-5.2.1~1469 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=09f917a4a6d1a2eae6236742df909a0cf2175d19;p=bacula%2Fbacula Remove closelog() in bpipe fixes bug #1536 --- diff --git a/bacula/src/lib/bpipe.c b/bacula/src/lib/bpipe.c index 8991774195..2b44096d84 100644 --- a/bacula/src/lib/bpipe.c +++ b/bacula/src/lib/bpipe.c @@ -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); }