From 1f3907a6a5fdb198ea28d37517a23c6bfd2b3d4e Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 26 Jul 2021 09:42:14 -0700 Subject: [PATCH] Fix for failing PostgreSQL directory format test (#430). --- borgmatic/execute.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/borgmatic/execute.py b/borgmatic/execute.py index 39b2e50ee..40d70c519 100644 --- a/borgmatic/execute.py +++ b/borgmatic/execute.py @@ -79,7 +79,10 @@ def log_outputs(processes, exclude_stdouts, output_log_level, borg_local_path): # hangs, vent all processes when one exits. if ready_process and ready_process.poll() is not None: for other_process in processes: - if other_process.poll() is None: + if ( + other_process.poll() is None + and other_process.stdout not in output_buffers + ): # Add the process's output to output_buffers to ensure it'll get read. output_buffers.append(other_process.stdout)