From: Wouter Wijngaards Date: Wed, 19 Nov 2008 16:05:23 +0000 (+0000) Subject: fix bug #219. X-Git-Tag: release-1.1.1~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d1b232442939183d4923369a1494a0ce4c3b56b3;p=thirdparty%2Funbound.git fix bug #219. git-svn-id: file:///svn/unbound/trunk@1363 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/daemon/unbound.c b/daemon/unbound.c index 0fcd52c20..19abe0c41 100644 --- a/daemon/unbound.c +++ b/daemon/unbound.c @@ -337,8 +337,11 @@ perform_setup(struct daemon* daemon, struct config_file* cfg, int debug_mode, /* init syslog (as root) if needed, before daemonize, otherwise * a fork error could not be printed since daemonize closed stderr.*/ - if(cfg->use_syslog) + if(cfg->use_syslog) { log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); + /* but syslog is not really opened by glibc until first msg */ + log_info("open syslog, startup in progress"); + } /* if using a logfile, we cannot open it because the logfile would * be created with the wrong permissions, we cannot chown it because * we cannot chown system logfiles, so we do not open at all. diff --git a/doc/Changelog b/doc/Changelog index bf6ec13b4..4963a3b39 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,7 @@ +19 November 2008: Wouter + - bug #219: fixed so that syslog which delays opening until the first + log line is written, gets a log line while not chroot'ed yet. + 18 November 2008: Wouter - iana portlist updated. - removed cast in unit test debug print that was not 64bit safe.