Date: Wed, 13 Nov 2013 01:04:02 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r258077 - head/usr.sbin/syslogd Message-ID: <201311130104.rAD1428P086303@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ian Date: Wed Nov 13 01:04:02 2013 New Revision: 258077 URL: http://svnweb.freebsd.org/changeset/base/258077 Log: Add ENETUNREACH and EADDRNOTAVAIL to the list of errors that are potentially transient and shouldn't result in closing the socket and giving up forever. Modified: head/usr.sbin/syslogd/syslogd.c Modified: head/usr.sbin/syslogd/syslogd.c ============================================================================== --- head/usr.sbin/syslogd/syslogd.c Wed Nov 13 01:01:15 2013 (r258076) +++ head/usr.sbin/syslogd/syslogd.c Wed Nov 13 01:04:02 2013 (r258077) @@ -1242,8 +1242,10 @@ fprintlog(struct filed *f, int flags, co switch (errno) { case ENOBUFS: case ENETDOWN: + case ENETUNREACH: case EHOSTUNREACH: case EHOSTDOWN: + case EADDRNOTAVAIL: break; /* case EBADF: */ /* case EACCES: */ @@ -1254,7 +1256,7 @@ fprintlog(struct filed *f, int flags, co /* case ENOBUFS: */ /* case ECONNREFUSED: */ default: - dprintf("removing entry\n"); + dprintf("removing entry: errno=%d\n", e); f->f_type = F_UNUSED; break; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311130104.rAD1428P086303>