put the pid on each line of the log file to facilitate
[rsync/rsync.git] / cleanup.c
index b4eac0c..ee2fa4d 100644 (file)
--- a/cleanup.c
+++ b/cleanup.c
@@ -57,6 +57,9 @@ void exit_cleanup(int code)
                        unlink(lp_pid_file());
                }
        }
+
+       if (code) log_exit(code);
+
        exit(code);
 }