/* 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.
+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.