From 39993af514cadf3764c355fe687110d5ea9b0b01 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 1 Aug 2002 00:37:08 +0000 Subject: [PATCH] The function passed to start_accept_loop() now takes 2 fd ints (for the daemon via remote-shell support). --- socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/socket.c b/socket.c index bb7acc06..fa8e4572 100644 --- a/socket.c +++ b/socket.c @@ -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 -- 2.34.1