Merge pull request #883 from pennsignals/fix/clean-forwarded-ports-darwin

Use ps keyword `command` instead of `cmd`
This commit is contained in:
Darragh Bailey
2018-11-27 19:19:47 +00:00
committed by GitHub

View File

@@ -210,9 +210,9 @@ module VagrantPlugins
end end
def ssh_pid?(pid) def ssh_pid?(pid)
@logger.debug 'Checking if #{pid} is an ssh process '\ @logger.debug "Checking if #{pid} is an ssh process "\
'with `ps -o cmd= #{pid}`' "with `ps -o command= #{pid}`"
`ps -o cmd= #{pid}`.strip.chomp =~ /ssh/ `ps -o command= #{pid}`.strip.chomp =~ /ssh/
end end
def remove_ssh_pids def remove_ssh_pids