From: Christopher Zimmermann Date: Tue, 14 Jan 2020 22:45:21 +0000 (+0100) Subject: Don't try to run daemon_privileged on reload. X-Git-Tag: release-1.21.0rc1~48^2~8^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad51795314b9bc89f78e4c2a2efe9feec871367c;p=thirdparty%2Funbound.git Don't try to run daemon_privileged on reload. --- 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 {