Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bef4934
)
The function passed to start_accept_loop() now takes 2 fd ints (for
author
Wayne Davison
<wayned@samba.org>
Thu, 1 Aug 2002 00:37:08 +0000
(
00:37
+0000)
committer
Wayne Davison
<wayned@samba.org>
Thu, 1 Aug 2002 00:37:08 +0000
(
00:37
+0000)
the daemon via remote-shell support).
socket.c
patch
|
blob
|
blame
|
history
diff --git
a/socket.c
b/socket.c
index
bb7acc0
..
fa8e457
100644
(file)
--- 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