Skip to content

Commit

Permalink
Merge pull request #88 from woshijpf/fix-cgroup-left-problem
Browse files Browse the repository at this point in the history
cgroups: fix MoveTo function fail problem
  • Loading branch information
crosbymichael authored Jun 20, 2019
2 parents 51b62d3 + 0ecd2b6 commit db27230
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,9 @@ func (c *cgroup) MoveTo(destination Cgroup) error {
}
for _, p := range processes {
if err := destination.Add(p); err != nil {
if strings.Contains(err.Error(), "no such process") {
continue
}
return err
}
}
Expand Down

0 comments on commit db27230

Please sign in to comment.