Merge pull request #1 from TokyoYoshida/add-attach-task-pid

add AttachTaskPid
This commit is contained in:
TokyoYoshida 2017-04-22 19:37:21 +09:00 committed by GitHub
commit 0018044404
1 changed files with 4 additions and 0 deletions

4
cg.go
View File

@ -221,6 +221,10 @@ func (cg Cgroup) GetUIDGID() (tasksUID UID, tasksGID GID, controlUID UID, contro
}
func (cg Cgroup) AttachTaskPid(pid Int) {
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