mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merge pull request #883 from pennsignals/fix/clean-forwarded-ports-darwin
Use ps keyword `command` instead of `cmd`
This commit is contained in:
@@ -210,9 +210,9 @@ module VagrantPlugins
|
||||
end
|
||||
|
||||
def ssh_pid?(pid)
|
||||
@logger.debug 'Checking if #{pid} is an ssh process '\
|
||||
'with `ps -o cmd= #{pid}`'
|
||||
`ps -o cmd= #{pid}`.strip.chomp =~ /ssh/
|
||||
@logger.debug "Checking if #{pid} is an ssh process "\
|
||||
"with `ps -o command= #{pid}`"
|
||||
`ps -o command= #{pid}`.strip.chomp =~ /ssh/
|
||||
end
|
||||
|
||||
def remove_ssh_pids
|
||||
|
||||
Reference in New Issue
Block a user