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:
Wouter Wijngaards 2010-07-06 09:10:12 +00:00
parent 13a1ed01fd
commit bfc0ddd0e0
2 changed files with 4 additions and 1 deletions

View file

@ -467,7 +467,7 @@ perform_setup(struct daemon* daemon, struct config_file* cfg, int debug_mode,
* chown to get permissions */ * chown to get permissions */
if(cfg->username && cfg->username[0]) { if(cfg->username && cfg->username[0]) {
if(chown(daemon->pidfile, uid, gid) == -1) { 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, (unsigned)uid, (unsigned)gid,
daemon->pidfile, strerror(errno)); daemon->pidfile, strerror(errno));
} }

View file

@ -1,3 +1,6 @@
6 July 2010: Wouter
- failure to chown the pidfile is not fatal any more.
5 July 2010: Wouter 5 July 2010: Wouter
- log if a server is skipped because it is on the donotquery list, - 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. at verbosity 4, to enable diagnosis why no queries to 127.0.0.1.