1
0
Fork 0
mirror of https://github.com/vbatts/go-cgroup.git synced 2025-06-30 15:48:32 +00:00
This commit is contained in:
TokyoYoshida 2017-04-22 10:50:23 +00:00 committed by GitHub
commit fc4a582a62

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