Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions shim/task/service_zeropod.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,19 @@ func (w *wrapper) processExits() {
preventExit = true
}
}
if !preventExit {
// pass event to service exit channel
w.service.ec <- e
if preventExit {
// cleanup running and exec maps
w.lifecycleMu.Lock()
delete(w.running, e.Pid)
for _, cp := range cps {
delete(w.execCountSubscribers, cp.Container)
delete(w.runningExecs, cp.Container)
}
w.lifecycleMu.Unlock()
continue
}
// pass event to service exit channel
w.service.ec <- e
}
}

Expand Down
Loading