fixed a problem with rsync buffering the debug output when redirected

to a file.
This commit is contained in:
Andrew Tridgell
1998-07-17 07:07:23 +00:00
parent d3bc0b68ab
commit 1f658d4207
3 changed files with 17 additions and 17 deletions

View File

@@ -917,7 +917,7 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen)
if (dry_run) {
if (!am_server && verbose)
printf("%s\n",fname);
rprintf(FINFO,"%s\n",fname);
continue;
}
@@ -989,7 +989,7 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen)
cleanup_file = file;
if (!am_server && verbose)
printf("%s\n",fname);
rprintf(FINFO,"%s\n",fname);
/* recv file data */
recv_ok = receive_data(f_in,buf,fd2,fname,file->length);
@@ -1100,7 +1100,7 @@ void send_files(struct file_list *flist,int f_out,int f_in)
if (dry_run) {
if (!am_server && verbose)
printf("%s\n",fname);
rprintf(FINFO,"%s\n",fname);
write_int(f_out,i);
continue;
}
@@ -1150,7 +1150,7 @@ void send_files(struct file_list *flist,int f_out,int f_in)
rprintf(FINFO,"calling match_sums %s\n",fname);
if (!am_server && verbose)
printf("%s\n",fname+offset);
rprintf(FINFO,"%s\n",fname+offset);
match_sums(f_out,s,buf,st.st_size);