From ba649eaa9d84f25de6cae059d464321c6cd889c5 Mon Sep 17 00:00:00 2001 From: Yoshida Date: Sat, 22 Apr 2017 19:34:12 +0900 Subject: [PATCH] add AttachTaskPid --- cg.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cg.go b/cg.go index 7c24bbb..36dc2f4 100644 --- a/cg.go +++ b/cg.go @@ -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