2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Fix console buffer interaction

In some environments, the read method on the pipe object fails
to work, os.read should be the same, but seems to work better and
is happy to perform the opportunisticly large reads I want.
This commit is contained in:
Jarrod Johnson 2021-04-02 12:29:41 -04:00
parent 2d43fac1b5
commit d9051e80d3

View File

@ -74,7 +74,7 @@ def get_buffer_output(nodename):
select.select((instream,), (), (), 30)
while not outdata or outdata[-1]:
try:
chunk = instream.read(128)
chunk = os.read(instream.fileno(), 128)
except IOError:
chunk = None
if chunk: