summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 74e5c6f)
raw | patch | inline | side by side (parent: 74e5c6f)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Sat, 13 Feb 2016 11:29:30 +0000 (12:29 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 9 Aug 2016 09:07:01 +0000 (11:07 +0200) |
src/write_sensu.c | patch | blob | history |
diff --git a/src/write_sensu.c b/src/write_sensu.c
index b07b3bf21f371b15d71f9ae796f99076b60cb28b..77069c08a8d1f7532019d20de92fdedbac785e5e 100644 (file)
--- a/src/write_sensu.c
+++ b/src/write_sensu.c
if (setsockopt(host->s, SOL_SOCKET, SO_LINGER, &so_linger, sizeof so_linger) != 0)
WARNING("write_sensu plugin: failed to set socket close() lingering");
+ set_sock_opts(host->s);
+
// connect the socket
if (connect(host->s, ai->ai_addr, ai->ai_addrlen) != 0) {
close(host->s);