mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
Failure to chown pidfile is not fatal any more.
git-svn-id: file:///svn/unbound/trunk@2182 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
13a1ed01fd
commit
bfc0ddd0e0
2 changed files with 4 additions and 1 deletions
|
|
@ -467,7 +467,7 @@ perform_setup(struct daemon* daemon, struct config_file* cfg, int debug_mode,
|
|||
* chown to get permissions */
|
||||
if(cfg->username && cfg->username[0]) {
|
||||
if(chown(daemon->pidfile, uid, gid) == -1) {
|
||||
fatal_exit("cannot chown %u.%u %s: %s",
|
||||
log_err("cannot chown %u.%u %s: %s",
|
||||
(unsigned)uid, (unsigned)gid,
|
||||
daemon->pidfile, strerror(errno));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
6 July 2010: Wouter
|
||||
- failure to chown the pidfile is not fatal any more.
|
||||
|
||||
5 July 2010: Wouter
|
||||
- log if a server is skipped because it is on the donotquery list,
|
||||
at verbosity 4, to enable diagnosis why no queries to 127.0.0.1.
|
||||
|
|
|
|||
Loading…
Reference in a new issue