get returns a process by ID.
(id string)
| 230 | |
| 231 | // get returns a process by ID. |
| 232 | func (m *manager) get(id string) (*process, bool) { |
| 233 | m.mu.Lock() |
| 234 | defer m.mu.Unlock() |
| 235 | proc, ok := m.procs[id] |
| 236 | return proc, ok |
| 237 | } |
| 238 | |
| 239 | // list returns info about all tracked processes. Exited |
| 240 | // processes older than exitedProcessReapAge are removed. |