summaryrefslogtreecommitdiff
path: root/clientserver.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-01-24 09:19:44 +0000
committerAndrew Tridgell <tridge@samba.org>2000-01-24 09:19:44 +0000
commit8a5d6bba0921ed8a2c931316d8fcae0b05b9ed2f (patch)
treee03f4d269f26aed1a7772f00c997c4b060ffd882 /clientserver.c
parent1d2c275fffcde1fb0e53f736b282117883f84d2c (diff)
downloadrsync-8a5d6bba0921ed8a2c931316d8fcae0b05b9ed2f.tar.gz
don't use stderr after we become a daemon
Diffstat (limited to 'clientserver.c')
-rw-r--r--clientserver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/clientserver.c b/clientserver.c
index 8c558075..8cf7baba 100644
--- a/clientserver.c
+++ b/clientserver.c
@@ -448,7 +448,6 @@ int daemon_main(void)
become_daemon();
if (!lp_load(config_file, 1)) {
- fprintf(stderr,"failed to load config file %s\n", config_file);
exit_cleanup(RERR_SYNTAX);
}
@@ -464,7 +463,7 @@ int daemon_main(void)
if ((fd = do_open(lp_pid_file(), O_WRONLY|O_CREAT|O_TRUNC,
0666 & ~orig_umask)) == -1) {
cleanup_set_pid(0);
- fprintf(stderr,"failed to create pid file %s\n", pid_file);
+ rprintf(FLOG,"failed to create pid file %s\n", pid_file);
exit_cleanup(RERR_FILEIO);
}
slprintf(pidbuf, sizeof(pidbuf), "%d\n", pid);