mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Fix no-daemon mode forking dnsmasq and not logging
no-daemon mode operates just like debug mode, but without the debug output, and dnsmasq is not in debug mode. Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
@@ -35,6 +35,7 @@ void parse_args(int argc, char* argv[])
|
||||
strcmp(argv[i], "debug") == 0)
|
||||
{
|
||||
debug = true;
|
||||
daemonmode = false;
|
||||
ok = true;
|
||||
|
||||
// Replace "-k" by "-d" (debug mode implies nofork)
|
||||
|
||||
+1
-1
@@ -863,7 +863,7 @@ pthread_t DNSclientthread;
|
||||
|
||||
void FTL_fork_and_bind_sockets(struct passwd *ent_pw)
|
||||
{
|
||||
if(!debug && daemonmode)
|
||||
if(daemonmode)
|
||||
go_daemon();
|
||||
else
|
||||
savepid();
|
||||
|
||||
Reference in New Issue
Block a user