mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-23 01:53:28 +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:
parent
2d43fac1b5
commit
d9051e80d3
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user