```ruby
theprocess = host_processes.find {|x| x["pid"] == pid}
```