]> arthur.barton.de Git - netdata.git/blobdiff - src/plugin_nfacct.c
Merge pull request #17 from alonbl/build
[netdata.git] / src / plugin_nfacct.c
index ba368f2dc9ee044aeadab7f0ff5b18b6751bda17..507db93f14c8a2f43c4c89b2bc32e52f002485f6 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+#ifdef INTERNAL_PLUGIN_NFACCT
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -14,7 +18,7 @@
 
 #include "global_statistics.h"
 #include "common.h"
-#include "config.h"
+#include "appconfig.h"
 #include "log.h"
 #include "rrd.h"
 #include "plugin_proc.h"
@@ -76,6 +80,8 @@ static int nfacct_callback(const struct nlmsghdr *nlh, void *data) {
 void *nfacct_main(void *ptr) {
        if(ptr) { ; }
 
+       info("NFACCT thread created with task id %d", gettid());
+
        if(pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, NULL) != 0)
                error("nfacct.plugin: Cannot set pthread cancel type to DEFERRED.");
 
@@ -204,3 +210,4 @@ void *nfacct_main(void *ptr) {
        mnl_socket_close(nl);
        return NULL;
 }
+#endif