20 #ifndef __TOOLS_DAEMONIZE_H 21 #define __TOOLS_DAEMONIZE_H 40 pid_t
daemonize(
const char *path,
char *
const argv[],
int nochdir,
int noclose);
pid_t daemonize(const char *path, char *const argv[], int nochdir, int noclose)
run program as daemon
int pidlock_set(const char *path)
try to save pid of calling process to file
pid_t pidlock_get(const char *path)
read pid from file and verify it