diff options
author | csjp <csjp@FreeBSD.org> | 2005-05-19 21:09:44 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2005-05-19 21:09:44 +0000 |
commit | 3a5fc7dc75e619408c9f7ce037a57772e9685af5 (patch) | |
tree | 4221f742ac03109931fa003b034e52a29456769d | |
parent | baca4bc328dca6cdc86bdd7576495dc1b4d0c3f5 (diff) | |
download | FreeBSD-src-3a5fc7dc75e619408c9f7ce037a57772e9685af5.zip FreeBSD-src-3a5fc7dc75e619408c9f7ce037a57772e9685af5.tar.gz |
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
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 3740c90..e506174 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; |