fix master tty leak due to leaking init container object
Signed-off-by: Henry Wang <henwang@amazon.com>
This commit is contained in:
parent
1698a59589
commit
17181ed33e
@ -369,6 +369,9 @@ func (s *service) Delete(ctx context.Context, r *taskAPI.DeleteRequest) (*taskAP
|
||||
ExitStatus: uint32(p.ExitStatus()),
|
||||
ExitedAt: protobuf.ToTimestamp(p.ExitedAt()),
|
||||
})
|
||||
s.lifecycleMu.Lock()
|
||||
delete(s.containerInitExit, container)
|
||||
s.lifecycleMu.Unlock()
|
||||
}
|
||||
return &taskAPI.DeleteResponse{
|
||||
ExitStatus: uint32(p.ExitStatus()),
|
||||
|
Loading…
Reference in New Issue
Block a user