diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-12-20 17:11:39 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-12-20 17:11:39 +0300 |
commit | ea1da6a43cf4f6bfcc23722a05baaae203a00db4 (patch) | |
tree | 1bbc911a153e4968d9e14f98f74f1de195c2bc49 /src/util.c | |
parent | 9e611e033cfc40aab58805d8e485f892352750c6 (diff) | |
download | rspamd-ea1da6a43cf4f6bfcc23722a05baaae203a00db4.tar.gz rspamd-ea1da6a43cf4f6bfcc23722a05baaae203a00db4.zip |
Make compiler happy in several cases, remove warnings.
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c index c5ec0145e..23203255b 100644 --- a/src/util.c +++ b/src/util.c @@ -408,7 +408,9 @@ write_pid (struct rspamd_main *main) if (main->is_privilleged) { /* Force root user as owner of pid file */ - fchown (main->pfh->pf_fd, 0, 0); + if (fchown (main->pfh->pf_fd, 0, 0) == -1) { + msg_err ("cannot chown of pidfile %s to 0:0 user", main->cfg->pid_file); + } } rspamd_pidfile_write (main->pfh); |