ftpd: add LOG_NDELAY to openlog

This commit is contained in:
Denis Vlasenko 2009-03-09 17:22:16 +00:00
parent 1a6adbd71b
commit 5b28d314e7

View File

@ -828,7 +828,8 @@ int ftpd_main(int argc, char **argv)
* failure */
}
openlog(applet_name, LOG_PID, LOG_DAEMON);
/* LOG_NDELAY is needed since we may chroot later */
openlog(applet_name, LOG_PID | LOG_NDELAY, LOG_DAEMON);
logmode |= LOGMODE_SYSLOG;
if (!(opts & OPT_v))
logmode = LOGMODE_SYSLOG;