From 5bc0fa1dff4e72b57875765458ebf4b9b62c4544 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 28 Jun 2012 08:22:06 -0700 Subject: [PATCH] Default the IO.select result to empty array to avoid nil errors --- lib/vagrant/util/subprocess.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/vagrant/util/subprocess.rb b/lib/vagrant/util/subprocess.rb index 31e3c9871..5c608e210 100644 --- a/lib/vagrant/util/subprocess.rb +++ b/lib/vagrant/util/subprocess.rb @@ -102,6 +102,7 @@ module Vagrant while true writers = notify_stdin ? [process.io.stdin] : [] results = IO.select([stdout, stderr], writers, nil, timeout || 5) + results ||= [] readers = results[0] writers = results[1]