summaryrefslogtreecommitdiffstats
path: root/src/streaming/sender.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/streaming/sender.c')
-rw-r--r--src/streaming/sender.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/streaming/sender.c b/src/streaming/sender.c
index 31eed95fa1..bb617c5fd7 100644
--- a/src/streaming/sender.c
+++ b/src/streaming/sender.c
@@ -947,6 +947,7 @@ static bool rrdpush_sender_thread_connect_to_parent(RRDHOST *host, int default_p
nd_log(NDLS_DAEMON, NDLP_WARNING,
"STREAM %s [send to %s]: cannot set non-blocking mode for socket.",
rrdhost_hostname(host), s->connected_to);
+ sock_setcloexec(s->rrdpush_sender_socket);
if(sock_enlarge_out(s->rrdpush_sender_socket) < 0)
nd_log(NDLS_DAEMON, NDLP_WARNING,