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.0.2~24 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=02c7c9ae43d07ef3ace05c1657ae363bb9940a5c;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); }