From ad51795314b9bc89f78e4c2a2efe9feec871367c Mon Sep 17 00:00:00 2001 From: Christopher Zimmermann Date: Tue, 14 Jan 2020 23:45:21 +0100 Subject: [PATCH] Don't try to run daemon_privileged on reload. --- daemon/unbound.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/unbound.c b/daemon/unbound.c index 32604728d..358d57bf1 100644 --- a/daemon/unbound.c +++ b/daemon/unbound.c @@ -668,9 +668,9 @@ run_daemon(const char* cfgfile, int cmdline_verbose, int debug_mode, int need_pi config_lookup_uid(cfg); /* prepare */ - if(!daemon_privileged(daemon)) - fatal_exit("could not do privileged setup"); if(!done_setup) { + if(!daemon_privileged(daemon)) + fatal_exit("could not do privileged setup"); perform_setup(daemon, cfg, debug_mode, &cfgfile, need_pidfile); done_setup = 1; } else { -- 2.47.2