Turn on blocking_io when starting client of rsync server daemon.
authorDavid Dykstra <dwd@samba.org>
Fri, 4 Aug 2000 21:18:23 +0000 (21:18 +0000)
committerDavid Dykstra <dwd@samba.org>
Fri, 4 Aug 2000 21:18:23 +0000 (21:18 +0000)
clientserver.c

index 7518e3e..459e222 100644 (file)
@@ -37,6 +37,7 @@ int start_socket_client(char *host, char *path, int argc, char *argv[])
        extern int remote_version;
        extern int am_sender;
        extern struct in_addr socket_address;
+       extern int blocking_io;
 
        if (*path == '/') {
                rprintf(FERROR,"ERROR: The remote path must start with a module name\n");
@@ -53,6 +54,8 @@ int start_socket_client(char *host, char *path, int argc, char *argv[])
        if (!user) user = getenv("USER");
        if (!user) user = getenv("LOGNAME");
 
+       blocking_io = 1;
+
        fd = open_socket_out(host, rsync_port, &socket_address);
        if (fd == -1) {
                exit_cleanup(RERR_SOCKETIO);