]> arthur.barton.de Git - netdata.git/blobdiff - src/backends.c
added more fping alarms; added the ability to have alarms that never send CLEAR notif...
[netdata.git] / src / backends.c
index a3b2231dbca2dc0ef77597b77b846dae564075fe..1272d0473d585d01c38ab77de132025170884dbc 100644 (file)
@@ -129,7 +129,7 @@ static inline int process_opentsdb_response(BUFFER *b) {
 }
 
 void *backends_main(void *ptr) {
-    (void)ptr;
+    struct netdata_static_thread *static_thread = (struct netdata_static_thread *)ptr;
 
     BUFFER *b = buffer_create(1), *response = buffer_create(1);
     int (*backend_request_formatter)(BUFFER *b, const char *prefix, RRDHOST *host, const char *hostname, RRDSET *st, RRDDIM *rd, time_t after, time_t before, uint32_t options) = NULL;
@@ -543,6 +543,7 @@ cleanup:
 
     info("BACKEND thread exiting");
 
+    static_thread->enabled = 0;
     pthread_exit(NULL);
     return NULL;
 }