Processes returns the processes running inside the cgroup along with the subsystem used, pid, and path
(subsystem Name, recursive bool)
| 373 | // Processes returns the processes running inside the cgroup along |
| 374 | // with the subsystem used, pid, and path |
| 375 | func (c *cgroup) Processes(subsystem Name, recursive bool) ([]Process, error) { |
| 376 | c.mu.Lock() |
| 377 | defer c.mu.Unlock() |
| 378 | if c.err != nil { |
| 379 | return nil, c.err |
| 380 | } |
| 381 | return c.processes(subsystem, recursive, cgroupProcs) |
| 382 | } |
| 383 | |
| 384 | // Tasks returns the tasks running inside the cgroup along |
| 385 | // with the subsystem used, pid, and path |