The --progress output now leaves the cursor at the end of the line
[rsync/rsync.git] / cleanup.c
index c059641..279b532 100644 (file)
--- a/cleanup.c
+++ b/cleanup.c
@@ -116,8 +116,10 @@ NORETURN void _exit_cleanup(int code, const char *file, int line)
 
                exit_code = unmodified_code = code;
 
-               if (progress_is_active && exit_code && !am_server)
-                       rprintf(FINFO, "\n");
+               if (progress_is_active) {
+                       fputc('\n', stdout);
+                       progress_is_active = 0;
+               }
 
                if (verbose > 3) {
                        rprintf(FINFO,