[collectd] [PATCH] unixsock: handle stale socket file
octo at collectd.org
Tue May 31 09:58:38 CEST 2011
On Mon, Apr 12, 2010 at 09:55:46PM +0200, Peter Warasin wrote:
> Any comments on the patch?
> Do you want me to change something?
sorry, I missed your emails. I've implemented the "DeleteSocket" option
for the UnixSock plugin in the mean time: If set to true, the UnixSock
plugin will call unlink(2) before trying to create the socket -- much
like your original patch.
If you or Sebastian (or anybody else ;) feel that the plugin should
check that the file is actually a socket before deleting it, be my
guest. But I believe that this configurable solution fits most needs.
Florian octo Forster
Hacker in training
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 835 bytes
Desc: Digital signature
More information about the collectd