Add LOG_NDELAY flag to openlog(3) - we want descriptor to be immediately open

so there are no surprises once we start chrooting or using capsicum.

MFC after:	1 week
This commit is contained in:
Pawel Jakub Dawidek 2011-01-27 19:15:25 +00:00
parent c1410d7a90
commit c62457374f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217962

View File

@ -59,7 +59,7 @@ pjdlog_mode_set(int mode)
pjdlog_mode = mode;
if (mode == PJDLOG_MODE_SYSLOG)
openlog(NULL, LOG_PID, LOG_DAEMON);
openlog(NULL, LOG_PID | LOG_NDELAY, LOG_DAEMON);
}
/*