module Mixlib::ShellOut::Unix

def open_pipes

segfault when you IO.select a pipe that's reached eof. Weak sauce.
Some patch levels of ruby in wide use (in particular the ruby 1.8.6 on OSX)
def open_pipes
  @open_pipes ||= [child_stdout, child_stderr, child_process_status]
end