module Mixlib::ShellOut::Unix

def read_stderr_to_buffer

def read_stderr_to_buffer
  while chunk = child_stderr.read_nonblock(READ_SIZE)
    @stderr << chunk
  end
rescue Errno::EAGAIN
rescue EOFError
  open_pipes.delete_at(1)
end