diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-02-24 19:55:32 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-02-24 19:55:32 +0000 |
commit | 0bca8624f6f1b3c7cbffc35a400d3e009b85e3a3 (patch) | |
tree | 755552d4ed71e2e199e980e3875a896dd7082d45 /pkg | |
parent | bba41b256f53f2e539b7dd536e5d75f9b5640242 (diff) | |
parent | 8f6274404a87aa6adb2c8f322b9ee7aae2589fba (diff) |
Merge release-20210208.0-88-g8f6274404 (automated)
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/sentry/control/proc.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/control/proc.go b/pkg/sentry/control/proc.go index f93bd64e0..367849e75 100644 --- a/pkg/sentry/control/proc.go +++ b/pkg/sentry/control/proc.go @@ -334,8 +334,8 @@ func PrintPIDsJSON(pl []*Process) (string, error) { func Processes(k *kernel.Kernel, containerID string, out *[]*Process) error { ts := k.TaskSet() now := k.RealtimeClock().Now() - for _, tg := range ts.Root.ThreadGroups() { - pidns := tg.PIDNamespace() + pidns := ts.Root + for _, tg := range pidns.ThreadGroups() { pid := pidns.IDOfThreadGroup(tg) // If tg has already been reaped ignore it. |