module Mixlib::ShellOut::Unix

def read_stdout_to_buffer

def read_stdout_to_buffer
  while ( chunk = child_stdout.read_nonblock(READ_SIZE) )
    @stdout << chunk
    @live_stdout << chunk if @live_stdout
  end
rescue Errno::EAGAIN
rescue EOFError
  open_pipes.delete(child_stdout)
end