summaryrefslogtreecommitdiff
path: root/socket.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2002-08-01 00:37:08 +0000
committerWayne Davison <wayned@samba.org>2002-08-01 00:37:08 +0000
commit39993af514cadf3764c355fe687110d5ea9b0b01 (patch)
treee3a442356e49544f36294b2bbd4dfed569e1abeb /socket.c
parentbef493404517020b3c863c90d5d26f50bbf0bc74 (diff)
downloadrsync-39993af514cadf3764c355fe687110d5ea9b0b01.tar.gz
rsync-39993af514cadf3764c355fe687110d5ea9b0b01.tar.bz2
rsync-39993af514cadf3764c355fe687110d5ea9b0b01.zip
The function passed to start_accept_loop() now takes 2 fd ints (for
the daemon via remote-shell support).
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c4
1 files 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