Remove unneeded cgroups path removal

It's handled in `destroy()`, no need to do this in
`Apply()`. I found this because systemd cgroup didn't
do this removal and it works well.

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
Qiang Huang 2016-02-15 11:22:13 +08:00
parent 361f9b7921
commit 7b88f34d6e
1 changed files with 0 additions and 5 deletions

View File

@ -129,11 +129,6 @@ func (m *Manager) Apply(pid int) (err error) {
}
paths := make(map[string]string)
defer func() {
if err != nil {
cgroups.RemovePaths(paths)
}
}()
for _, sys := range subsystems {
if err := sys.Apply(d); err != nil {
return err