summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-02-24 19:55:32 +0000
committergVisor bot <gvisor-bot@google.com>2021-02-24 19:55:32 +0000
commit0bca8624f6f1b3c7cbffc35a400d3e009b85e3a3 (patch)
tree755552d4ed71e2e199e980e3875a896dd7082d45 /pkg/sentry
parentbba41b256f53f2e539b7dd536e5d75f9b5640242 (diff)
parent8f6274404a87aa6adb2c8f322b9ee7aae2589fba (diff)
Merge release-20210208.0-88-g8f6274404 (automated)
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/control/proc.go4
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.