X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/bc3fcf1d39ca698386e09f1abc1a54178102e558..e66d6d511b675d31a3c55b51fd28d5d2558d094a:/slp.diff diff --git a/slp.diff b/slp.diff index 8d0815c..6a7e227 100644 --- a/slp.diff +++ b/slp.diff @@ -43,7 +43,7 @@ diff --git a/Makefile.in b/Makefile.in diff --git a/clientserver.c b/clientserver.c --- a/clientserver.c +++ b/clientserver.c -@@ -1068,6 +1068,13 @@ int daemon_main(void) +@@ -1062,6 +1062,13 @@ int daemon_main(void) * address too. In fact, why not just do inet_ntop on the * local address??? */ @@ -126,7 +126,7 @@ diff --git a/loadparm.c b/loadparm.c diff --git a/main.c b/main.c --- a/main.c +++ b/main.c -@@ -1112,6 +1112,18 @@ static int start_client(int argc, char *argv[]) +@@ -1120,6 +1120,18 @@ static int start_client(int argc, char *argv[]) if (!read_batch) { /* for read_batch, NO source is specified */ char *path = check_for_hostspec(argv[0], &shell_machine, &rsync_port); @@ -223,9 +223,9 @@ diff --git a/rsyncd.conf.yo b/rsyncd.conf.yo special socket options are set. These settings are superseded by the bf(--sockopts) command-line option. -+dit(bf(slp refresh)) This option is used to determine how long service ++dit(bf(slp refresh)) This parameter is used to determine how long service +advertisements are valid (measured in seconds), and is only applicable if -+you have Service Location Protocol support compiled in. If this option is ++you have Service Location Protocol support compiled in. If this is +not set or is set to zero, then service advertisements never time out. If +this is set to less than 120 seconds, then 120 seconds is used. If it is +set to more than 65535, then 65535 is used (which is a limitation of SLP). @@ -246,7 +246,7 @@ diff --git a/rsyncd.conf.yo b/rsyncd.conf.yo diff --git a/socket.c b/socket.c --- a/socket.c +++ b/socket.c -@@ -524,6 +524,16 @@ void start_accept_loop(int port, int (*fn)(int, int)) +@@ -530,6 +530,16 @@ void start_accept_loop(int port, int (*fn)(int, int)) { fd_set deffds; int *sp, maxfd, i; @@ -263,7 +263,7 @@ diff --git a/socket.c b/socket.c #ifdef HAVE_SIGACTION sigact.sa_flags = SA_NOCLDSTOP; -@@ -552,14 +562,25 @@ void start_accept_loop(int port, int (*fn)(int, int)) +@@ -558,14 +568,25 @@ void start_accept_loop(int port, int (*fn)(int, int)) maxfd = sp[i]; } @@ -289,7 +289,7 @@ diff --git a/socket.c b/socket.c /* close log file before the potentially very long select so * file can be trimmed by another process instead of growing -@@ -571,8 +592,18 @@ void start_accept_loop(int port, int (*fn)(int, int)) +@@ -577,8 +598,18 @@ void start_accept_loop(int port, int (*fn)(int, int)) #else fds = deffds; #endif