When running as --daemon in the background and using a "log file" rsyncd.conf
[rsync.git] / clientserver.c
index 95461106df7ca953825fca9b8e51370a9f39af0e..0164d070bdcc7071b25a569b922248955bf90afb 100644 (file)
@@ -206,7 +206,7 @@ static int rsync_module(int fd, int i)
        p = lp_exclude(i);
        add_exclude_line(p);
 
-       log_open();
+       log_init();
 
        if (use_chroot) {
                if (chroot(lp_path(i))) {
@@ -449,7 +449,7 @@ int daemon_main(void)
                exit_cleanup(RERR_SYNTAX);
        }
 
-       log_open();
+       log_init();
 
        rprintf(FINFO,"rsyncd version %s starting\n",VERSION);