Skip to content

Commit 5653ced

Browse files
author
Mrunal Patel
authored
Merge pull request #1059 from datawolf/use-WriteCgrougProc
cgroup: using WriteCgroupProc to write the specified pid into the cgroup's cgroup.procs file
2 parents bb792ed + ce99518 commit 5653ced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcontainer/cgroups/fs/cpu.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (s *CpuGroup) ApplyDir(path string, cgroup *configs.Cgroup, pid int) error
4646
}
4747
// because we are not using d.join we need to place the pid into the procs file
4848
// unlike the other subsystems
49-
if err := writeFile(path, "cgroup.procs", strconv.Itoa(pid)); err != nil {
49+
if err := cgroups.WriteCgroupProc(path, pid); err != nil {
5050
return err
5151
}
5252

0 commit comments

Comments
 (0)