Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 6 Jul 2015 19:21:38 -0400
From: Rich Felker <>
Subject: Re: [PATCH] close syslog socket on error to recreate it later

On Sat, Jul 04, 2015 at 07:58:04PM +0300, Timo Teräs wrote:
> if syslogd is restarted, the socket is left in unconnected state
> and all logging will cease

Here's a simple version with reopening, IMO simpler than the one you
gave on IRC. Adding checks for errno value would be easy if we want to
retry only on certain error(s).


View attachment "syslog_reopen.diff" of type "text/plain" (872 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.