Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/getty - don't use LOG_ODELAY; it's the default



details:   https://anonhg.NetBSD.org/src/rev/69daf949b60f
branches:  trunk
changeset: 501976:69daf949b60f
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Jan 10 00:36:44 2001 +0000

description:
- don't use LOG_ODELAY; it's the default
- use LOG_WARNING (instead of LOG_ERR) for non-fatal errors

diffstat:

 libexec/getty/main.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 94af31e2559b -r 69daf949b60f libexec/getty/main.c
--- a/libexec/getty/main.c      Wed Jan 10 00:20:49 2001 +0000
+++ b/libexec/getty/main.c      Wed Jan 10 00:36:44 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.35 2000/12/28 22:18:27 sommerfeld Exp $     */
+/*     $NetBSD: main.c,v 1.36 2001/01/10 00:36:44 lukem Exp $  */
 
 /*-
  * Copyright (c) 1980, 1993
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "from: @(#)main.c       8.1 (Berkeley) 6/20/93";
 #else
-__RCSID("$NetBSD: main.c,v 1.35 2000/12/28 22:18:27 sommerfeld Exp $");
+__RCSID("$NetBSD: main.c,v 1.36 2001/01/10 00:36:44 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -208,7 +208,7 @@
 /*
        signal(SIGQUIT, SIG_DFL);
 */
-       openlog("getty", LOG_ODELAY|LOG_PID, LOG_AUTH);
+       openlog("getty", LOG_PID, LOG_AUTH);
        gethostname(hostname, sizeof(hostname));
        hostname[sizeof(hostname) - 1] = '\0';
        if (hostname[0] == '\0')
@@ -267,7 +267,7 @@
                chmod(ttyn, 0600);
                revoke(ttyn);
                if (ttyaction(ttyn, "getty", "root"))
-                       syslog(LOG_ERR,"%s: ttyaction failed", ttyn);
+                       syslog(LOG_WARNING, "%s: ttyaction failed", ttyn);
                /*
                 * Delay the open so DTR stays down long enough to be detected.
                 */
@@ -275,7 +275,7 @@
                while ((i = open(ttyn, O_RDWR)) == -1) {
                        if ((repcnt % 10 == 0) &&
                            (errno != ENXIO || !failopenlogged)) {
-                               syslog(LOG_ERR, "%s: %m", ttyn);
+                               syslog(LOG_WARNING, "%s: %m", ttyn);
                                closelog();
                                failopenlogged = 1;
                        }



Home | Main Index | Thread Index | Old Index