Date: Mon, 29 Jul 2002 14:14:03 +0300 (EEST) From: land@dnepr.net To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/41115: Syslogd stops sending messages to remote host after temporary network fail Message-ID: <200207291114.g6TBE3Ka000632@gx.dnepr.net>
next in thread | raw e-mail | index | archive | help
>Number: 41115
>Category: bin
>Synopsis: Syslogd stops sending messages to remote host after temporary network fail
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Jul 29 04:20:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: land@dnepr.net
>Release: FreeBSD 4.6-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD 4.6-RELEASE-p2 FreeBSD 4.6-RELEASE-p2 #3: Sun Jul 14 12:18:03 EEST 2002 /usr/obj/usr/src/sys/XXX i386
>Description:
If syslogd can't successfully send udp message to configured in syslog.conf host,
it do not try to send messages to this host until restart.
>How-To-Repeat:
syslog.conf:
*.* @somehost
Disble communication with that host.
E.g.:
/sbin/ipfw add 10 deny udp from any to $somehost 514
>Fix:
*** /usr/src/usr.sbin/syslogd/syslogd.c Sat Jun 29 12:46:06 2002
--- syslogd.c Mon Jul 29 14:01:04 2002
***************
*** 1050,1059 ****
break;
}
if (lsent != l) {
- int e = errno;
- (void)close(f->f_file);
- errno = e;
- f->f_type = F_UNUSED;
logerror("sendto");
}
}
--- 1050,1055 ----
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207291114.g6TBE3Ka000632>
