From 02c7c9ae43d07ef3ace05c1657ae363bb9940a5c Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 16 Apr 2010 20:37:16 +0200 Subject: [PATCH] Remove closelog() in bpipe fixes bug #1536 --- bacula/src/lib/bpipe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.39.5