bug 1137228 - use readline instead of iterator for reading mozprocess output. r=ahal

--HG--
extra : rebase_source : dfea4b912d5e91e13330e92fdd300a44bf0a9dc4
This commit is contained in:
Ted Mielczarek 2015-02-26 15:16:59 -05:00
parent fa8aaf19d8
commit 61b17bc728

View File

@ -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()