X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Fplugin_proc.c;fp=src%2Fplugin_proc.c;h=e20cbd3660cb3d24f00ad91be03204a5603524cd;hb=78c8a6bad687723c43930be4307b051af3977c22;hp=9b99d82e1d15a79bbd762a38266f924c65683340;hpb=70dd96e14ac491bfa5567eefe516084114516537;p=netdata.git diff --git a/src/plugin_proc.c b/src/plugin_proc.c index 9b99d82e..e20cbd36 100644 --- a/src/plugin_proc.c +++ b/src/plugin_proc.c @@ -56,9 +56,8 @@ static struct proc_module { { .name = NULL, .dim = NULL, .func = NULL } }; -void *proc_main(void *ptr) -{ - (void)ptr; +void *proc_main(void *ptr) { + struct netdata_static_thread *static_thread = (struct netdata_static_thread *)ptr; info("PROC Plugin thread created with task id %d", gettid()); @@ -140,6 +139,8 @@ void *proc_main(void *ptr) info("PROC thread exiting"); + static_thread->enabled = 0; + static_thread->thread = NULL; pthread_exit(NULL); return NULL; }