This commit is contained in:
TokyoYoshida 2017-04-22 10:50:23 +00:00 committed by GitHub
commit fc4a582a62
1 changed files with 8 additions and 0 deletions

8
cg.go
View File

@ -221,6 +221,14 @@ func (cg Cgroup) GetUIDGID() (tasksUID UID, tasksGID GID, controlUID UID, contro
}
type (
PID C.pid_t
)
func (cg Cgroup) AttachTaskPid(pid PID) error {
return _err(C.cgroup_attach_task_pid(cg.g, pid))
}
const (
// NoPerms is uninitialized file/directory permissions used for task/control files.
NoPerms = C.NO_PERMS