Commit 39993af5 authored by Wayne Davison's avatar Wayne Davison

The function passed to start_accept_loop() now takes 2 fd ints (for

the daemon via remote-shell support).
parent bef49340
......@@ -374,7 +374,7 @@ int is_a_socket(int fd)
}
void start_accept_loop(int port, int (*fn)(int ))
void start_accept_loop(int port, int (*fn)(int, int))
{
int s;
extern char *bind_address;
......@@ -433,7 +433,7 @@ void start_accept_loop(int port, int (*fn)(int ))
/* open log file in child before possibly giving
up privileges */
log_open();
_exit(fn(fd));
_exit(fn(fd, fd));
} else if (pid < 0) {
rprintf(FERROR,
RSYNC_NAME
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment