mirror of
https://github.com/vbatts/go-cgroup.git
synced 2025-06-28 14:48:30 +00:00
fix-bug2
This commit is contained in:
parent
0df2138b76
commit
13b46b9576
1 changed files with 5 additions and 1 deletions
6
cg.go
6
cg.go
|
@ -221,7 +221,11 @@ func (cg Cgroup) GetUIDGID() (tasksUID UID, tasksGID GID, controlUID UID, contro
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cg Cgroup) AttachTaskPid(pid int) error {
|
type (
|
||||||
|
PID C.pid_t
|
||||||
|
)
|
||||||
|
|
||||||
|
func (cg Cgroup) AttachTaskPid(pid PID) error {
|
||||||
return _err(C.cgroup_attach_task_pid(cg.g, pid))
|
return _err(C.cgroup_attach_task_pid(cg.g, pid))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue