syslogstash 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/syslogstash/syslog_reader.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1146e4aa94b87702bcc7859071f330a0dc82217b
|
4
|
+
data.tar.gz: 7e309b2725310d9353486caf3e39083c92cc10ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1c11c88ca4b5d27e0c9bb10b7e9438acf1e9f199f1053d5ebf8e60d4266224218d388afda093f755b3596e3a686316b06d54b2370459012ae5e7b5b04708eda
|
7
|
+
data.tar.gz: df55bd4d65f556b60fc2eb3fe229a5f0cf6af00b7cad19971fa47fb60cf14e1852cbb0bc014070d741c9280e2d1a31db2d404e0cc56ec49a1ef044d3c4be8645
|
@@ -20,7 +20,7 @@ class Syslogstash::SyslogReader
|
|
20
20
|
socket = Socket.new(Socket::AF_UNIX, Socket::SOCK_DGRAM, 0)
|
21
21
|
socket.bind(Socket.pack_sockaddr_un(@file))
|
22
22
|
rescue Errno::EEXIST, Errno::EADDRINUSE
|
23
|
-
log { "socket file #{@file} already exists; deleting"
|
23
|
+
log { "socket file #{@file} already exists; deleting" }
|
24
24
|
File.unlink(@file) rescue nil
|
25
25
|
retry
|
26
26
|
rescue SystemCallError
|
@@ -37,7 +37,7 @@ class Syslogstash::SyslogReader
|
|
37
37
|
end
|
38
38
|
ensure
|
39
39
|
socket.close
|
40
|
-
log { "removing socket file #{@file}"
|
40
|
+
log { "removing socket file #{@file}" }
|
41
41
|
File.unlink(@file) rescue nil
|
42
42
|
end
|
43
43
|
end
|