Always join fs.Cpuset reguardless of value
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
9c7bd7cd9e
commit
75093be3c9
|
@ -14,19 +14,13 @@ type CpusetGroup struct {
|
|||
}
|
||||
|
||||
func (s *CpusetGroup) Set(d *data) error {
|
||||
// we don't want to join this cgroup unless it is specified
|
||||
if d.c.CpusetCpus != "" {
|
||||
dir, err := d.path("cpuset")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return s.SetDir(dir, d.c.CpusetCpus, d.pid)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *CpusetGroup) Remove(d *data) error {
|
||||
return removePath(d.path("cpuset"))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue