t = threading.Thread(target=progress, args=(p.stdout, options))
while(p.returncodes is None):
- # We could do other useful work here.
+ # We could do other useful work here. If we have no useful
+ # work to do here, we can call readline() and process it
+ # directly in this loop, instead of creating a thread to do it in.