From: Wayne Davison Date: Thu, 1 Aug 2002 00:37:08 +0000 (+0000) Subject: The function passed to start_accept_loop() now takes 2 fd ints (for X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/39993af514cadf3764c355fe687110d5ea9b0b01 The function passed to start_accept_loop() now takes 2 fd ints (for the daemon via remote-shell support). --- 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