nfqws,tpws: do most checks before daemonize

This commit is contained in:
bol-van
2025-05-09 10:32:11 +03:00
parent e62fb2f0f4
commit 691a501b0d
5 changed files with 95 additions and 28 deletions

View File

@@ -170,6 +170,8 @@ struct params_s
char debug_logfile[PATH_MAX];
bool debug;
bool daemon;
#ifdef __linux__
int qnum;
#elif defined(BSD)
@@ -187,6 +189,7 @@ struct params_s
uid_t uid;
gid_t gid;
#endif
char pidfile[PATH_MAX];
char hostlist_auto_debuglog[PATH_MAX];