Skip to content

Commit

Permalink
Merge pull request #14 from richard-burhans/update-segalign-runner
Browse files Browse the repository at this point in the history
added bufsize=1 to subprocess call when running segalign to make it line buffered
  • Loading branch information
richard-burhans authored Aug 7, 2024
2 parents 2840545 + 13eb90c commit 4b56e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/segalign/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4b56e02

Please sign in to comment.