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