Use exec to avoid leaving ssh lingering around

This commit is contained in:
Dario Meloni 2017-09-15 09:47:47 +02:00
parent c8a2ed8f34
commit 2b37f931b5
No known key found for this signature in database
GPG Key ID: F438A99F5A2CC677

View File

@ -102,7 +102,7 @@ module VagrantPlugins
options += " -o ProxyCommand=\"#{ssh_info[:proxy_command]}\"" if machine.provider_config.connect_via_ssh
# TODO: instead of this, try and lock and get the stdin from spawn...
ssh_cmd = ''
ssh_cmd = 'exec '
if host_port <= 1024
@@lock.synchronize do
# TODO: add i18n