diff options
Diffstat (limited to 'src/zeroconf.c')
-rw-r--r-- | src/zeroconf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/zeroconf.c b/src/zeroconf.c index 0de0957..5b70566 100644 --- a/src/zeroconf.c +++ b/src/zeroconf.c @@ -598,8 +598,11 @@ int dcc_zeroconf_add_hosts(struct dcc_hostdef **ret_list, int *ret_nhosts, int n setsid(); #endif - chdir("/"); + int ret = chdir("/"); rs_add_logger(rs_logger_syslog, RS_LOG_DEBUG, NULL, 0); + if (ret != 0) { + rs_log_warning("chdir to '/' failed: %s", strerror(errno)); + } _exit(daemon_proc(host_file, lock_file, n_slots)); } |