]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
fix bug #219.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 19 Nov 2008 16:05:23 +0000 (16:05 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 19 Nov 2008 16:05:23 +0000 (16:05 +0000)
git-svn-id: file:///svn/unbound/trunk@1363 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/unbound.c
doc/Changelog

index 0fcd52c201b4c0b71eacb3caf924a40f03056f7f..19abe0c415a8a5a0fa327bdf8ae74cdcfccc8523 100644 (file)
@@ -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.
index bf6ec13b4b34db97439d3e5a43aeeb6c9bf478fd..4963a3b397cf8adf625ffcb9a938f221041b4cc6 100644 (file)
@@ -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.