Skip to content

Commit 1c21882

Browse files
committed
delete cgroups.AddPid
I can only see it being called in libpod/oci_conmon_linux.go that too when CgroupManager is not systemd, so it should be safe to remove. Signed-off-by: Lokesh Mandvekar <[email protected]>
1 parent a24e03e commit 1c21882

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

common/pkg/cgroups/cgroups_linux.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
systemdDbus "github.com/coreos/go-systemd/v22/dbus"
2121
"github.com/godbus/dbus/v5"
2222
"github.com/opencontainers/cgroups"
23-
"github.com/opencontainers/cgroups/fs2"
2423
"go.podman.io/storage/pkg/fileutils"
2524
"go.podman.io/storage/pkg/unshare"
2625
"golang.org/x/sys/unix"
@@ -335,12 +334,6 @@ func (c *CgroupControl) Update(resources *cgroups.Resources) error {
335334
return nil
336335
}
337336

338-
// AddPid moves the specified pid to the cgroup.
339-
func (c *CgroupControl) AddPid(pid int) error {
340-
path := filepath.Join(cgroupRoot, c.config.Path)
341-
return fs2.CreateCgroupPath(path, c.config)
342-
}
343-
344337
// Stat returns usage statistics for the cgroup.
345338
func (c *CgroupControl) Stat() (*cgroups.Stats, error) {
346339
m := cgroups.Stats{}

0 commit comments

Comments
 (0)