Merge pull request #2401 from txchen/master

core: sleep to avoid 100% CPU in waiting time of 'vagrant up'
This commit is contained in:
Mitchell Hashimoto 2013-10-21 10:43:41 -07:00
commit 5515063186
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ module Vagrant
# Wait for a result or an interrupt
env[:ui].info I18n.t("vagrant.boot_waiting")
while ready_thr.alive? && states_thr.alive?
sleep 1
return if env[:interrupted]
end