NOTE: It is possible for a process pid to be in more than one cgroup if it has separate threads (tasks) in different cgroups.
| 929 | // NOTE: It is possible for a process pid to be in more than one cgroup if it |
| 930 | // has separate threads (tasks) in different cgroups. |
| 931 | Try<set<pid_t>> processes(const string& hierarchy, const string& cgroup) |
| 932 | { |
| 933 | return internal::tasks(hierarchy, cgroup, "cgroup.procs"); |
| 934 | } |
| 935 | |
| 936 | |
| 937 | Try<set<pid_t>> threads(const string& hierarchy, const string& cgroup) |