From 13eb90c4e7efc5312da21cf692a7507e9ae7342b Mon Sep 17 00:00:00 2001 From: Richard Burhans Date: Wed, 7 Aug 2024 16:08:25 -0400 Subject: [PATCH] added bufsize=1 to subprocess call when running segalign to make it line buffered --- tools/segalign/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/segalign/runner.py b/tools/segalign/runner.py index 15964bc..e4d8870 100755 --- a/tools/segalign/runner.py +++ b/tools/segalign/runner.py @@ -386,7 +386,7 @@ def run_segalign(args: argparse.Namespace, num_sentinel: int, segalign_args: lis beg: int = time.monotonic_ns() r_beg = resource.getrusage(resource.RUSAGE_CHILDREN) - process = subprocess.run(run_args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True) + process = subprocess.run(run_args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, bufsize=1, text=True) for line in process.stdout.splitlines(): commands.add(line)