mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
fix bug #219.
git-svn-id: file:///svn/unbound/trunk@1363 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
be6bbb470a
commit
d1b2324429
2 changed files with 8 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue