mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
bug 1137228 - use readline instead of iterator for reading mozprocess output. r=ahal
--HG-- extra : rebase_source : dfea4b912d5e91e13330e92fdd300a44bf0a9dc4
This commit is contained in:
parent
fa8aaf19d8
commit
61b17bc728
@ -825,7 +825,10 @@ class ProcessReader(object):
|
||||
return thread
|
||||
|
||||
def _read_stream(self, stream, queue, callback):
|
||||
for line in stream:
|
||||
while True:
|
||||
line = stream.readline()
|
||||
if not line:
|
||||
break
|
||||
queue.put((line, callback))
|
||||
stream.close()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user