diff --git a/monitor/src/daemonize.c b/monitor/src/daemonize.c index 1758a8d..882c12b 100644 --- a/monitor/src/daemonize.c +++ b/monitor/src/daemonize.c @@ -1,4 +1,4 @@ -#include "daemonize.h" +//#include "daemonize.h" #include #include #include @@ -8,6 +8,10 @@ #include + +int pid_fd; +char *pid_file_name; + void daemonize() { pid_t pid = 0; diff --git a/monitor/src/daemonize.h b/monitor/src/daemonize.h index 72ebfec..98fbd20 100644 --- a/monitor/src/daemonize.h +++ b/monitor/src/daemonize.h @@ -3,8 +3,8 @@ #include -int pid_fd; -char *pid_file_name; +extern int pid_fd; +extern char *pid_file_name; void daemonize(); #endif diff --git a/monitor/src/monitor.c b/monitor/src/monitor.c index fe93787..d19842f 100644 --- a/monitor/src/monitor.c +++ b/monitor/src/monitor.c @@ -29,7 +29,7 @@ static char *server = NULL; static char *queue = "default"; static char *port = "5672"; -static char dumpfile_dir[] = "/tmp/taccstats"; +static char *dumpfile_dir = "/tmp/taccstats"; static double freq = 300; static int max_buffer_size = 300; // 25 hours static int allow_ring_buffer_overwrite = 0;