Sleep to avoid 100% CPU in waiting time of 'vagrant up'

This commit is contained in:
Tianxiang Chen 2013-10-20 20:16:28 -07:00
parent 673a06b54d
commit e1abceee8c
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