diff options
author | Wayne Davison <wayned@samba.org> | 2002-08-01 00:37:08 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2002-08-01 00:37:08 +0000 |
commit | 39993af514cadf3764c355fe687110d5ea9b0b01 (patch) | |
tree | e3a442356e49544f36294b2bbd4dfed569e1abeb /socket.c | |
parent | bef493404517020b3c863c90d5d26f50bbf0bc74 (diff) | |
download | rsync-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |