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

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);
}
/*