From 8e56d2ee05f923c4c08701973df979e3d93c3f9b Mon Sep 17 00:00:00 2001 From: "Christian S.J. Peron" Date: Thu, 19 May 2005 21:09:44 +0000 Subject: [PATCH] Add cases for ENOBUFS and ENETDOWN. We need to make sure that we catch all transient errors. This fixes situations where transient error conditions such as network interfaces losing carrier signals or the system running out of mbufs would result in the permanent removal of forwarding syslog messages. MFC after: 1 week --- usr.sbin/syslogd/syslogd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 3740c9065e73..e506174f352e 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1189,6 +1189,8 @@ fprintlog(struct filed *f, int flags, const char *msg) logerror("sendto"); errno = e; switch (errno) { + case ENOBUFS: + case ENETDOWN: case EHOSTUNREACH: case EHOSTDOWN: break;