mirror of
https://github.com/xcat2/confluent.git
synced 2025-07-12 07:41:32 +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:
@ -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:
|
||||
|
Reference in New Issue
Block a user