Skip to content

Commit

Permalink
added bufsize=1 to subprocess call when running segalign to make it l…
Browse files Browse the repository at this point in the history
…ine buffered
  • Loading branch information
Richard Burhans committed Aug 7, 2024
1 parent 2840545 commit 13eb90c
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 13eb90c

Please sign in to comment.