Source-Changes-HG archive

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

[src/trunk]: src use explicit name rather than __progname in openlog



details:   https://anonhg.NetBSD.org/src/rev/6d9268a7b183
branches:  trunk
changeset: 502045:6d9268a7b183
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu Jan 11 01:34:28 2001 +0000

description:
use explicit name rather than __progname in openlog

diffstat:

 sbin/wdogctl/wdogctl.c |  4 ++--
 usr.sbin/apmd/apmd.c   |  6 +++---
 usr.sbin/inetd/inetd.c |  6 +++---
 3 files changed, 8 insertions(+), 8 deletions(-)

diffs (66 lines):

diff -r 4b96b82c3763 -r 6d9268a7b183 sbin/wdogctl/wdogctl.c
--- a/sbin/wdogctl/wdogctl.c    Thu Jan 11 01:33:35 2001 +0000
+++ b/sbin/wdogctl/wdogctl.c    Thu Jan 11 01:34:28 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdogctl.c,v 1.3 2001/01/10 07:59:43 lukem Exp $        */
+/*     $NetBSD: wdogctl.c,v 1.4 2001/01/11 01:34:28 lukem Exp $        */
 
 /*-
  * Copyright (c) 2000 Zembu Labs, Inc.
@@ -171,7 +171,7 @@
                err(1, "open %s", _PATH_WATCHDOG);
 
        /* ...so we can log failures to tickle the timer. */
-       openlog(__progname, LOG_PERROR|LOG_PID, LOG_DAEMON);
+       openlog("wdogctl", LOG_PERROR|LOG_PID, LOG_DAEMON);
 
        /*
         * We fork a child process which detaches from the controlling
diff -r 4b96b82c3763 -r 6d9268a7b183 usr.sbin/apmd/apmd.c
--- a/usr.sbin/apmd/apmd.c      Thu Jan 11 01:33:35 2001 +0000
+++ b/usr.sbin/apmd/apmd.c      Thu Jan 11 01:34:28 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: apmd.c,v 1.15 2000/08/13 21:13:56 jhawk Exp $  */
+/*     $NetBSD: apmd.c,v 1.16 2001/01/11 01:35:53 lukem Exp $  */
 
 /*-
  * Copyright (c) 1996, 2000 The NetBSD Foundation, Inc.
@@ -400,9 +400,9 @@
        (void)err(1, "cannot open device file `%s'", fname);
     } 
     if (debug) {
-       openlog(__progname, LOG_CONS, LOG_LOCAL1);
+       openlog("apmd", 0, LOG_LOCAL1);
     } else {
-       openlog(__progname, LOG_CONS, LOG_DAEMON);
+       openlog("apmd", 0, LOG_DAEMON);
        setlogmask(LOG_UPTO(LOG_NOTICE));
        daemon(0, 0);
        pidfile(NULL);
diff -r 4b96b82c3763 -r 6d9268a7b183 usr.sbin/inetd/inetd.c
--- a/usr.sbin/inetd/inetd.c    Thu Jan 11 01:33:35 2001 +0000
+++ b/usr.sbin/inetd/inetd.c    Thu Jan 11 01:34:28 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inetd.c,v 1.71 2000/08/01 18:42:08 itojun Exp $        */
+/*     $NetBSD: inetd.c,v 1.72 2001/01/11 01:36:40 lukem Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -77,7 +77,7 @@
 #if 0
 static char sccsid[] = "@(#)inetd.c    8.4 (Berkeley) 4/13/94";
 #else
-__RCSID("$NetBSD: inetd.c,v 1.71 2000/08/01 18:42:08 itojun Exp $");
+__RCSID("$NetBSD: inetd.c,v 1.72 2001/01/11 01:36:40 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -481,7 +481,7 @@
 
        if (debug == 0)
                daemon(0, 0);
-       openlog(__progname, LOG_PID | LOG_NOWAIT, LOG_DAEMON);
+       openlog("inetd", LOG_PID | LOG_NOWAIT, LOG_DAEMON);
        pidfile(NULL);
 
 #ifdef RLIMIT_NOFILE



Home | Main Index | Thread Index | Old Index