Commit b52e2422 authored by Swann Perarnau's avatar Swann Perarnau

[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):
universal_newlines=True)
while True:
err = proc.poll()
if not err:
if err is None:
print(proc.stdout.readline(), end='', flush=True)
else:
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