Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/syslogd Revert previous - local merge mishap
details: https://anonhg.NetBSD.org/src/rev/565ccf2ba4f1
branches: trunk
changeset: 445606:565ccf2ba4f1
user: martin <martin%NetBSD.org@localhost>
date: Mon Nov 05 10:27:06 2018 +0000
description:
Revert previous - local merge mishap
diffstat:
usr.sbin/syslogd/syslogd.c | 23 ++---------------------
1 files changed, 2 insertions(+), 21 deletions(-)
diffs (58 lines):
diff -r 45580481b867 -r 565ccf2ba4f1 usr.sbin/syslogd/syslogd.c
--- a/usr.sbin/syslogd/syslogd.c Mon Nov 05 09:22:30 2018 +0000
+++ b/usr.sbin/syslogd/syslogd.c Mon Nov 05 10:27:06 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syslogd.c,v 1.129 2018/11/05 09:22:30 wiz Exp $ */
+/* $NetBSD: syslogd.c,v 1.130 2018/11/05 10:27:06 martin Exp $ */
/*
* Copyright (c) 1983, 1988, 1993, 1994
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94";
#else
-__RCSID("$NetBSD: syslogd.c,v 1.129 2018/11/05 09:22:30 wiz Exp $");
+__RCSID("$NetBSD: syslogd.c,v 1.130 2018/11/05 10:27:06 martin Exp $");
#endif
#endif /* not lint */
@@ -75,9 +75,6 @@
#include "syslogd.h"
#include "extern.h"
-/* Minimum size of the logpath socket buffer */
-#define RCVBUFLEN 16384
-
#ifndef DISABLE_SIGN
#include "sign.h"
struct sign_global_t GlobalSign = {
@@ -496,9 +493,6 @@
die(0, 0, NULL);
}
for (j = 0, pp = LogPaths; *pp; pp++, j++) {
- int buf_len;
- socklen_t socklen = sizeof(buf_len);
-
DPRINTF(D_NET, "Making unix dgram socket `%s'\n", *pp);
unlink(*pp);
memset(&sunx, 0, sizeof(sunx));
@@ -513,19 +507,6 @@
}
setsockbuf(funix[j], *pp);
DPRINTF(D_NET, "Listening on unix dgram socket `%s'\n", *pp);
- if (getsockopt(funix[j], SOL_SOCKET, SO_RCVBUF,
- &buf_len, &socklen) == -1) {
- logerror("getsockopt: SO_RCVBUF: `%s'", *pp);
- continue;
- }
- if (buf_len >= RCVBUFLEN)
- continue;
- buf_len = RCVBUFLEN;
- if (setsockopt(funix[j], SOL_SOCKET, SO_RCVBUF,
- &buf_len, socklen) == -1) {
- logerror("setsockopt: SO_RCVBUF: `%s'", *pp);
- continue;
- }
}
if ((fklog = open(_PATH_KLOG, O_RDONLY, 0)) < 0) {
Home |
Main Index |
Thread Index |
Old Index