ソースを参照

Fix for failing PostgreSQL directory format test (#430).

Dan Helfman 3 年 前
コミット
1f3907a6a5
1 ファイル変更4 行追加1 行削除
  1. 4 1
      borgmatic/execute.py

+ 4 - 1
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.
                 # hangs, vent all processes when one exits.
                 if ready_process and ready_process.poll() is not None:
                 if ready_process and ready_process.poll() is not None:
                     for other_process in processes:
                     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.
                             # Add the process's output to output_buffers to ensure it'll get read.
                             output_buffers.append(other_process.stdout)
                             output_buffers.append(other_process.stdout)