diff options
-rw-r--r-- | utils/utils_supported.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/utils_supported.go b/utils/utils_supported.go index 6f517dc72..dfa0b486a 100644 --- a/utils/utils_supported.go +++ b/utils/utils_supported.go @@ -183,6 +183,9 @@ func moveUnderCgroup(cgroup, subtree string, processes []uint32) error { return err } for _, pid := range bytes.Split(processesData, []byte("\n")) { + if len(pid) == 0 { + continue + } if _, err := f.Write(pid); err != nil { logrus.Warnf("Cannot move process %s to cgroup %q", string(pid), newCgroup) } |