From cae95647a4355ff81f044ef001c6332f138fa171 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Tue, 9 Apr 2002 05:07:15 +0000 Subject: [PATCH] Doc. --- clientserver.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/clientserver.c b/clientserver.c index 5667b1d5..c8676f64 100644 --- a/clientserver.c +++ b/clientserver.c @@ -147,7 +147,13 @@ int start_socket_client(char *host, char *path, int argc, char *argv[]) if (strcmp(line,"@RSYNCD: OK") == 0) break; - if (strcmp(line,"@RSYNCD: EXIT") == 0) exit(0); + if (strcmp(line,"@RSYNCD: EXIT") == 0) { + /* This is sent by recent versions of the + * server to terminate the listing of modules. + * We don't want to go on and transfer + * anything; just exit. */ + exit(0); + } if (strncmp(line, "@ERROR", 6) == 0) rprintf(FERROR,"%s\n", line); -- 2.34.1