Skip to content

Commit aedb079

Browse files
committed
fix master tty leak due to leaking init container object
Signed-off-by: Henry Wang <[email protected]>
1 parent 045ab3c commit aedb079

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/containerd-shim-runc-v2/task/service.go

+3
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ func (s *service) Delete(ctx context.Context, r *taskAPI.DeleteRequest) (*taskAP
369369
ExitStatus: uint32(p.ExitStatus()),
370370
ExitedAt: protobuf.ToTimestamp(p.ExitedAt()),
371371
})
372+
s.lifecycleMu.Lock()
373+
delete(s.containerInitExit, container)
374+
s.lifecycleMu.Unlock()
372375
}
373376
return &taskAPI.DeleteResponse{
374377
ExitStatus: uint32(p.ExitStatus()),

0 commit comments

Comments
 (0)