diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2015-03-16 16:31:42 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2015-03-16 16:31:42 +0200 |
commit | 037bbc245f57e45f9e6f56c705957e38586d7218 (patch) | |
tree | 6b90908065e2399b0f5b85acf546a6bf35f1533b /src/daemon.h | |
parent | 29ecdb6a8fc035eae3fdcc66c491c77af8e3429b (diff) |
splitted netdata to multiple source files
Diffstat (limited to 'src/daemon.h')
-rwxr-xr-x | src/daemon.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/daemon.h b/src/daemon.h new file mode 100755 index 0000000000..33b9dec9c7 --- /dev/null +++ b/src/daemon.h @@ -0,0 +1,12 @@ +#ifndef NETDATA_DAEMON_H +#define NETDATA_DAEMON_H 1 + +extern void sig_handler(int signo); + +extern void prepare_rundir(); + +extern int become_user(const char *username); + +extern int become_daemon(int close_all_files, const char *input, const char *output, const char *error, const char *access, int *access_fd, FILE **access_fp); + +#endif /* NETDATA_DAEMON_H */ |