Default the IO.select result to empty array to avoid nil errors
This commit is contained in:
parent
0b9173efd9
commit
5bc0fa1dff
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue