mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
- Explicitly disable any SSH multiplexing here so PID tracking of tunnels works correctly. - Using `exec ssh` in the spawn forces Ruby to use a subshell (as exec is a shell builtin) instead of spawning the ssh process directly, which results in getting the wrong (and dead, as the exec replaces the subshell) PID to track and clean up later. - Run the ssh tunnel command on its own process group, essentially daemonizing it and keeping its PID intact even when `vagrant up` command is run on shell/consoles without an explicit TTY, such as Emacs Eshell.