Date: Tue, 11 Nov 2003 10:43:12 +0200 From: Nikolay Pavlov <temp@roks.biz> To: freebsd-stable@freebsd.org Subject: Re: PR bin/51253 Message-ID: <186306398.20031111104312@roks.biz> In-Reply-To: <1655795183.20031107160844@roks.biz> References: <1655795183.20031107160844@roks.biz>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?186306398.20031111104312>