From: Andrew Tridgell Date: Tue, 26 Jun 2001 01:20:42 +0000 (+0000) Subject: applied simple nohang patch from Wayne Davison X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/6c65e14634d9d2a7b103fe53aa7585b196c38227 applied simple nohang patch from Wayne Davison --- diff --git a/main.c b/main.c index 63fab0dc..38df5a0d 100644 --- a/main.c +++ b/main.c @@ -504,16 +504,16 @@ int client_run(int f_in, int f_out, pid_t pid, int argc, char *argv[]) rprintf(FINFO,"file list sent\n"); send_files(flist,f_out,f_in); + if (remote_version >= 24) { + /* final goodbye message */ + read_int(f_in); + } if (pid != -1) { if (verbose > 3) rprintf(FINFO,"client_run waiting on %d\n",pid); io_flush(); wait_process(pid, &status); } - if (remote_version >= 24) { - /* final goodbye message */ - read_int(f_in); - } report(-1); exit_cleanup(status); }