Default the IO.select result to empty array to avoid nil errors

This commit is contained in:
Mitchell Hashimoto 2012-06-28 08:22:06 -07:00
parent 0b9173efd9
commit 5bc0fa1dff
1 changed files with 1 additions and 0 deletions

View File

@ -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]