Skip to content

Commit

Permalink
monitor bug fix: multiple var definition and incompatible var type
Browse files Browse the repository at this point in the history
  • Loading branch information
JunjieLi committed Mar 22, 2024
1 parent 0decdf8 commit 640c248
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion monitor/src/daemonize.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "daemonize.h"
//#include "daemonize.h"
#include <fcntl.h>
#include <string.h>
#include <stdio.h>
Expand All @@ -8,6 +8,10 @@

#include <syslog.h>


int pid_fd;
char *pid_file_name;

void daemonize()
{
pid_t pid = 0;
Expand Down
4 changes: 2 additions & 2 deletions monitor/src/daemonize.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#include <stdlib.h>

int pid_fd;
char *pid_file_name;
extern int pid_fd;
extern char *pid_file_name;
void daemonize();

#endif
2 changes: 1 addition & 1 deletion monitor/src/monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 640c248

Please sign in to comment.