From 522bf9ff8b561925efb6fc31677a5a399ce30b3f Mon Sep 17 00:00:00 2001 From: Shawn Neal Date: Fri, 16 Jan 2015 08:03:37 -0800 Subject: [PATCH] Fix issue 3031 Sometimes in use ports can raise a Errno::EACCES exeptions on Windows hosts. --- lib/vagrant/util/is_port_open.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/util/is_port_open.rb b/lib/vagrant/util/is_port_open.rb index e98dd4c24..63652ee28 100644 --- a/lib/vagrant/util/is_port_open.rb +++ b/lib/vagrant/util/is_port_open.rb @@ -29,7 +29,8 @@ module Vagrant # to connect. return true end - rescue Timeout::Error, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::ENETUNREACH + rescue Timeout::Error, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, \ + Errno::ENETUNREACH, Errno::EACCES # Any of the above exceptions signal that the port is closed. return false end