X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/4313d6f9c00885f6921f5c90f8e52f715ebd81a9..4e7d07c8d4c75f0fc4207f0d6058db99b61c2f17:/socket.c diff --git a/socket.c b/socket.c index adab8e3a..bc61baeb 100644 --- a/socket.c +++ b/socket.c @@ -465,7 +465,6 @@ void start_accept_loop(int port, int (*fn)(int, int)) maxfd = sp[i]; } - /* now accept incoming connections - forking a new process * for each incoming connection */ while (1) { @@ -478,7 +477,7 @@ void start_accept_loop(int port, int (*fn)(int, int)) /* close log file before the potentially very long select so * file can be trimmed by another process instead of growing * forever */ - log_close(); + logfile_close(); #ifdef FD_COPY FD_COPY(&deffds, &fds); @@ -507,8 +506,8 @@ void start_accept_loop(int port, int (*fn)(int, int)) for (i = 0; sp[i] >= 0; i++) close(sp[i]); /* Re-open log file in child before possibly giving - * up privileges (see log_close() above). */ - log_open(); + * up privileges (see logfile_close() above). */ + logfile_reopen(); ret = fn(fd, fd); close_all(); _exit(ret);