Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/syslogd Fix minor thinko in previous. Make sure we...
details: https://anonhg.NetBSD.org/src/rev/42c2f8e36e4e
branches: trunk
changeset: 494113:42c2f8e36e4e
user: jwise <jwise%NetBSD.org@localhost>
date: Sun Jul 02 02:15:34 2000 +0000
description:
Fix minor thinko in previous. Make sure we close and keep closed all
sockets in the situation where all of the following are true:
* /etc/syslogd.conf contained forwarding actions when we were
started up or when we last received a HUP
* /etc/syslogd.conf has had all forwarding actions removed
* we are running with -s
and we receive a HUP.
diffstat:
usr.sbin/syslogd/syslogd.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 849a4bbbe0a1 -r 42c2f8e36e4e usr.sbin/syslogd/syslogd.c
--- a/usr.sbin/syslogd/syslogd.c Sun Jul 02 00:55:47 2000 +0000
+++ b/usr.sbin/syslogd/syslogd.c Sun Jul 02 02:15:34 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syslogd.c,v 1.38 2000/06/30 18:45:04 jwise Exp $ */
+/* $NetBSD: syslogd.c,v 1.39 2000/07/02 02:15:34 jwise Exp $ */
/*
* Copyright (c) 1983, 1988, 1993, 1994
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94";
#else
-__RCSID("$NetBSD: syslogd.c,v 1.38 2000/06/30 18:45:04 jwise Exp $");
+__RCSID("$NetBSD: syslogd.c,v 1.39 2000/07/02 02:15:34 jwise Exp $");
#endif
#endif /* not lint */
@@ -1074,6 +1074,12 @@
}
}
+ /*
+ * Reset counter of forwarding actions
+ */
+
+ NumForwards=0;
+
/* open the configuration file */
if ((cf = fopen(ConfFile, "r")) == NULL) {
dprintf("cannot open %s\n", ConfFile);
Home |
Main Index |
Thread Index |
Old Index