Add adds a process to the cgroup (cgroup.procs). Without additional arguments, the process is added to all the cgroup subsystems. When giving Add a list of subsystem names, the process is only added to those subsystems, provided that they are active in the targeted cgroup.
(Process, ...Name)
| 59 | // subsystem names, the process is only added to those subsystems, provided that |
| 60 | // they are active in the targeted cgroup. |
| 61 | Add(Process, ...Name) error |
| 62 | // AddProc adds the process with the given id to the cgroup (cgroup.procs). |
| 63 | // Without additional arguments, the process with the given id is added to all |
| 64 | // the cgroup subsystems. When giving AddProc a list of subsystem names, the process |
no outgoing calls