From 5fb64dfca23eb0ae00b318d7976885c9ffaf51c7 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 13 Feb 2014 07:40:33 -0800 Subject: [PATCH] core: use Process#wait since childprocess bug is fixed --- lib/vagrant/util/ssh.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/vagrant/util/ssh.rb b/lib/vagrant/util/ssh.rb index 9809b0d91..487b972b0 100644 --- a/lib/vagrant/util/ssh.rb +++ b/lib/vagrant/util/ssh.rb @@ -174,13 +174,7 @@ module Vagrant process = ChildProcess.build("ssh", *command_options) process.io.inherit! process.start - - # Poll for exited rather than call #wait because #wait will hold - # the GIL, locking up the entire Ruby VM. See ChildProcess #68 - while !process.exited? - sleep 0.2 - end - + process.wait return process.exit_code end end