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
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