Remove LOG_ODELAY because it does nothing.

Reviewed by:	jilles
CR:		https://reviews.freebsd.org/D611
This commit is contained in:
Neel Natu 2014-08-17 19:06:26 +00:00
parent e6b802649c
commit 06224a9492
6 changed files with 6 additions and 6 deletions

View File

@ -187,7 +187,7 @@ main(int argc, char *argv[])
signal(SIGINT, SIG_IGN); signal(SIGINT, SIG_IGN);
signal(SIGQUIT, SIG_IGN); signal(SIGQUIT, SIG_IGN);
openlog("getty", LOG_ODELAY|LOG_CONS|LOG_PID, LOG_AUTH); openlog("getty", LOG_CONS|LOG_PID, LOG_AUTH);
gethostname(hostname, sizeof(hostname) - 1); gethostname(hostname, sizeof(hostname) - 1);
hostname[sizeof(hostname) - 1] = '\0'; hostname[sizeof(hostname) - 1] = '\0';
if (hostname[0] == '\0') if (hostname[0] == '\0')

View File

@ -127,7 +127,7 @@ main(int argc, char *argv[])
int ch, on = 1; int ch, on = 1;
struct sockaddr_storage from; struct sockaddr_storage from;
openlog("rshd", LOG_PID | LOG_ODELAY, LOG_DAEMON); openlog("rshd", LOG_PID, LOG_DAEMON);
opterr = 0; opterr = 0;
while ((ch = getopt(argc, argv, OPTIONS)) != -1) while ((ch = getopt(argc, argv, OPTIONS)) != -1)

View File

@ -242,7 +242,7 @@ main(int argc, char *argv[])
* Note that this does NOT open a file... * Note that this does NOT open a file...
* Does 'init' deserve its own facility number? * Does 'init' deserve its own facility number?
*/ */
openlog("init", LOG_CONS|LOG_ODELAY, LOG_AUTH); openlog("init", LOG_CONS, LOG_AUTH);
/* /*
* Create an initial session. * Create an initial session.

View File

@ -97,7 +97,7 @@ main(int argc, char **argv)
char *ap, *cryptpw, *mypw, *ttynam, *tzn; char *ap, *cryptpw, *mypw, *ttynam, *tzn;
char hostname[MAXHOSTNAMELEN], s[BUFSIZ], s1[BUFSIZ]; char hostname[MAXHOSTNAMELEN], s[BUFSIZ], s1[BUFSIZ];
openlog("lock", LOG_ODELAY, LOG_AUTH); openlog("lock", 0, LOG_AUTH);
sectimeout = TIMEOUT; sectimeout = TIMEOUT;
pw = NULL; pw = NULL;

View File

@ -198,7 +198,7 @@ main(int argc, char *argv[])
(void)alarm(timeout); (void)alarm(timeout);
(void)setpriority(PRIO_PROCESS, 0, 0); (void)setpriority(PRIO_PROCESS, 0, 0);
openlog("login", LOG_ODELAY, LOG_AUTH); openlog("login", 0, LOG_AUTH);
uid = getuid(); uid = getuid();
euid = geteuid(); euid = geteuid();

View File

@ -66,7 +66,7 @@ main(int argc, char *argv[])
{ {
register struct cmd *c; register struct cmd *c;
openlog("timedc", LOG_ODELAY, LOG_AUTH); openlog("timedc", 0, LOG_AUTH);
/* /*
* security dictates! * security dictates!