use explicit name rather than __progname in openlog

This commit is contained in:
lukem 2001-01-11 01:34:28 +00:00
parent 3efcec3cf5
commit 0645f2f67b
3 changed files with 8 additions and 8 deletions

View File

@ -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 @@ enable_user(const char *name, u_int period)
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

View File

@ -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 @@ main(int argc, char *argv[])
(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);

View File

@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1991, 1993, 1994\n\
#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 @@ main(argc, argv, envp)
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