diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-01-14 13:18:08 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-01-14 13:18:08 +0200 |
commit | 78c8a6bad687723c43930be4307b051af3977c22 (patch) | |
tree | 4ab56118f0388d14753d51d2d60ebc06ffc8951e /src/plugin_freebsd.c | |
parent | 70dd96e14ac491bfa5567eefe516084114516537 (diff) |
improved netdata cleanup/exit procedure
Diffstat (limited to 'src/plugin_freebsd.c')
-rw-r--r-- | src/plugin_freebsd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugin_freebsd.c b/src/plugin_freebsd.c index 9231b53829..a9a9d643cc 100644 --- a/src/plugin_freebsd.c +++ b/src/plugin_freebsd.c @@ -1,8 +1,7 @@ #include "common.h" -void *freebsd_main(void *ptr) -{ - (void)ptr; +void *freebsd_main(void *ptr) { + struct netdata_static_thread *static_thread = (struct netdata_static_thread *)ptr; info("FREEBSD Plugin thread created with task id %d", gettid()); @@ -59,6 +58,8 @@ void *freebsd_main(void *ptr) info("FREEBSD thread exiting"); + static_thread->enabled = 0; + static_thread->thread = NULL; pthread_exit(NULL); return NULL; } |