From e1abceee8c643c519cc6131639207a41a36054f5 Mon Sep 17 00:00:00 2001 From: Tianxiang Chen Date: Sun, 20 Oct 2013 20:16:28 -0700 Subject: [PATCH] Sleep to avoid 100% CPU in waiting time of 'vagrant up' --- lib/vagrant/action/builtin/wait_for_communicator.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/vagrant/action/builtin/wait_for_communicator.rb b/lib/vagrant/action/builtin/wait_for_communicator.rb index f2b7e8408..fe1e59818 100644 --- a/lib/vagrant/action/builtin/wait_for_communicator.rb +++ b/lib/vagrant/action/builtin/wait_for_communicator.rb @@ -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