suricata
|
#include "suricata.h"
#include "suricata-common.h"
#include "runmodes.h"
#include "util-daemon.h"
#include "util-debug.h"
#include "conf.h"
#include <sys/wait.h>
#include <sys/stat.h>
#include <fcntl.h>
Go to the source code of this file.
Functions | |
void | Daemonize (void) |
Daemonize the process. More... | |
int | CheckValidDaemonModes (int daemon, int mode) |
Check for a valid combination daemon/mode. More... | |
Daemonization process
Definition in file util-daemon.c.
int CheckValidDaemonModes | ( | int | daemon, |
int | mode | ||
) |
Check for a valid combination daemon/mode.
daemon | daemon on or off |
mode | selected mode |
1 | valid combination |
0 | invalid combination |
Definition at line 177 of file util-daemon.c.
References RUNMODE_PCAP_FILE, RUNMODE_UNITTEST, SCLogDebug, and SCLogError.
void Daemonize | ( | void | ) |
Daemonize the process.
Definition at line 101 of file util-daemon.c.