Commit b52e2422 authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[fix] Stop readline on success

Previous code was blocking on stdout after subprocess completed with
success, as `poll()` would return 0, and `not 0` is true.
parent 440db486
...@@ -190,7 +190,7 @@ def do_configure(argv): ...@@ -190,7 +190,7 @@ def do_configure(argv):
universal_newlines=True) universal_newlines=True)
while True: while True:
err = proc.poll() err = proc.poll()
if not err: if err is None:
print(proc.stdout.readline(), end='', flush=True) print(proc.stdout.readline(), end='', flush=True)
else: else:
if err == 0: if err == 0:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment