Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Mention the logging fix for a single-use daemon.
[rsync/rsync.git]
/
clientserver.c
diff --git
a/clientserver.c
b/clientserver.c
index
b631ef2
..
4c8057e
100644
(file)
--- a/
clientserver.c
+++ b/
clientserver.c
@@
-42,9
+42,9
@@
extern int filesfrom_fd;
extern int remote_protocol;
extern int protocol_version;
extern int io_timeout;
extern int remote_protocol;
extern int protocol_version;
extern int io_timeout;
-extern int orig_umask;
extern int no_detach;
extern int default_af_hint;
extern int no_detach;
extern int default_af_hint;
+extern mode_t orig_umask;
extern char *bind_address;
extern char *sockopts;
extern char *config_file;
extern char *bind_address;
extern char *sockopts;
extern char *config_file;
@@
-733,8
+733,6
@@
int start_daemon(int f_in, int f_out)
char *host = client_name(f_in);
int i;
char *host = client_name(f_in);
int i;
- rprintf(FLOG, "connect from %s (%s)\n", host, addr);
-
io_set_sock_fds(f_in, f_out);
if (!lp_load(config_file, 0))
io_set_sock_fds(f_in, f_out);
if (!lp_load(config_file, 0))
@@
-742,6
+740,8
@@
int start_daemon(int f_in, int f_out)
log_init();
log_init();
+ rprintf(FLOG, "connect from %s (%s)\n", host, addr);
+
if (!am_server) {
set_socket_options(f_in, "SO_KEEPALIVE");
if (sockopts)
if (!am_server) {
set_socket_options(f_in, "SO_KEEPALIVE");
if (sockopts)