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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user