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-7.0.0~1934 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4e92fe8798440e6982519d585c113350aa9fa07e;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); }