|
Message-ID: <20150706232138.GC1173@brightrain.aerifal.cx>
Date: Mon, 6 Jul 2015 19:21:38 -0400
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
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).
Rich
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.