class ChefCLI::Pager

def wait

def wait
  return false unless pager_enabled?
  # Sends EOF to the PAGER
  parent_stdout.close
  # wait or else we'd kill the pager when we exit
  Process.waitpid(pager_pid)
end