]> arthur.barton.de Git - netdata.git/blobdiff - src/plugin_proc.c
Merge pull request #17 from alonbl/build
[netdata.git] / src / plugin_proc.c
index f1169a26515af0b84e5f865dbcab9a823ca9b21f..8e7a257bc047c0726a89638c8733e6b8cdb9d5d3 100755 (executable)
@@ -1,3 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #include <pthread.h>
 #include <sys/time.h>
 #include <sys/resource.h>
@@ -6,7 +9,7 @@
 
 #include "global_statistics.h"
 #include "common.h"
-#include "config.h"
+#include "appconfig.h"
 #include "log.h"
 #include "rrd.h"
 #include "plugin_proc.h"
@@ -15,6 +18,8 @@ void *proc_main(void *ptr)
 {
        if(ptr) { ; }
 
+       info("PROC Plugin thread created with task id %d", gettid());
+
        if(pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, NULL) != 0)
                error("Cannot set pthread cancel type to DEFERRED.");