From: Francesco Chemolli Date: Tue, 21 Jul 2015 12:42:27 +0000 (+0200) Subject: Added comment on log_file_daemon error reporting X-Git-Tag: merge-candidate-3-v1~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b49476cd1d222f7dc4721c1251d506026d2d7e2;p=thirdparty%2Fsquid.git Added comment on log_file_daemon error reporting --- diff --git a/helpers/log_daemon/file/log_file_daemon.cc b/helpers/log_daemon/file/log_file_daemon.cc index cd1c65fb30..a2365aabdf 100644 --- a/helpers/log_daemon/file/log_file_daemon.cc +++ b/helpers/log_daemon/file/log_file_daemon.cc @@ -105,6 +105,9 @@ main(int argc, char *argv[]) exit(1); } setbuf(stdout, NULL); + /* XXX stderr should not be closed, but in order to support squid must be + * able to collect and manage modules's stderr first. + */ close(2); t = open(_PATH_DEVNULL, O_RDWR); assert(t > -1);