lib/syslogstash/syslog_reader.rb in syslogstash-1.1.1 vs lib/syslogstash/syslog_reader.rb in syslogstash-1.1.2

- old
+ new

@@ -35,9 +35,10 @@ debug { "#run called" } begin socket = Socket.new(Socket::AF_UNIX, Socket::SOCK_DGRAM, 0) socket.bind(Socket.pack_sockaddr_un(@file)) + File.chmod(0666, @file) rescue Errno::EEXIST, Errno::EADDRINUSE log { "socket file #{@file} already exists; deleting" } File.unlink(@file) rescue nil retry rescue SystemCallError