summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/kernel/sessions.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/sessions.go b/pkg/sentry/kernel/sessions.go
index b44d218d9..a9b4e7647 100644
--- a/pkg/sentry/kernel/sessions.go
+++ b/pkg/sentry/kernel/sessions.go
@@ -367,6 +367,9 @@ func (tg *ThreadGroup) CreateProcessGroup() error {
tg.processGroup.decRefWithParent(oldParentPG)
tg.processGroup = pg
+ // Add the new process group to the session.
+ pg.session.processGroups.PushBack(pg)
+
// Ensure this translation is added to all namespaces.
for ns := tg.pidns; ns != nil; ns = ns.parent {
local := ns.tids[tg.leader]