From owner-freebsd-stable@FreeBSD.ORG Tue Nov 11 00:44:13 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87A5C16A4CE for ; Tue, 11 Nov 2003 00:44:13 -0800 (PST) Received: from pathfinder.roks.biz (roks.biz [212.110.133.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4ED7343FCB for ; Tue, 11 Nov 2003 00:44:10 -0800 (PST) (envelope-from temp@roks.biz) Received: from admin.office.roks.biz (admin.office.roks.biz [192.168.100.103]) by pathfinder.roks.biz (8.12.9p2/8.12.9) with ESMTP id hAB8hFS8004016 for ; Tue, 11 Nov 2003 10:43:18 +0200 (EET) (envelope-from temp@roks.biz) Date: Tue, 11 Nov 2003 10:43:12 +0200 From: Nikolay Pavlov X-Mailer: The Bat! (v1.61) X-Priority: 3 (Normal) Message-ID: <186306398.20031111104312@roks.biz> To: freebsd-stable@freebsd.org In-Reply-To: <1655795183.20031107160844@roks.biz> References: <1655795183.20031107160844@roks.biz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: PR bin/51253 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Nikolay Pavlov List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2003 08:44:13 -0000 NP> Hi, folks. NP> Syslogd dies on my FreeBSD 4.9 box after reconfiguration that enables remote logging. NP> I have looked in mail archives and found PR bin/51253 that describes a problem. NP> I am not especial programmer, but that solve the problem: NP> --- syslogd.c.old Tue May 20 20:13:53 2003 NP> +++ syslogd.c Fri Nov 7 12:10:44 2003 NP> @@ -1072,7 +1072,6 @@ NP> switch (errno) { NP> case EHOSTUNREACH: NP> case EHOSTDOWN: NP> - break; NP> /* case EBADF: */ NP> /* case EACCES: */ NP> /* case ENOTSOCK: */ NP> Thanks, Nikolay. Sorry, wrong way. Correct and tested this code: --- syslogd.c.orig Tue May 20 20:13:53 2003 +++ syslogd.c Mon Nov 10 09:46:54 2003 @@ -1069,24 +1069,9 @@ int e = errno; logerror("sendto"); errno = e; - switch (errno) { - case EHOSTUNREACH: - case EHOSTDOWN: - break; - /* case EBADF: */ - /* case EACCES: */ - /* case ENOTSOCK: */ - /* case EFAULT: */ - /* case EMSGSIZE: */ - /* case EAGAIN: */ - /* case ENOBUFS: */ - /* case ECONNREFUSED: */ - default: - dprintf("removing entry\n", e); - (void)close(f->f_file); - f->f_type = F_UNUSED; - break; - } + dprintf("removing entry\n", e); + (void)close(f->f_file); + f->f_type = F_UNUSED; } } break; Thanks, Nikolay.