--- main.c.orig 2017-06-05 20:43:39.844493000 +0200 +++ main.c 2017-06-05 20:45:04.561944000 +0200 @@ -921,6 +921,7 @@ io_start_multiplex_out(f_out); recv_files(f_in, f_out, local_name); + sync(); //data consistency, force completion of pending disk writes io_flush(FULL_FLUSH); handle_stats(f_in);