Merge pull request #4341 from databus23/patch-2

core: selecting for duration of timeout can cause hang
This commit is contained in:
Mitchell Hashimoto 2014-08-29 09:52:33 -07:00
commit 7fe5b70d51
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ module Vagrant
@logger.debug("Selecting on IO")
while true
writers = notify_stdin ? [process.io.stdin] : []
results = ::IO.select([stdout, stderr], writers, nil, timeout || 0.1)
results = ::IO.select([stdout, stderr], writers, nil, 0.1)
results ||= []
readers = results[0]
writers = results[1]