runc-shim: remove misleading comment

It's not true that `s.mu` needs to be held when calling
`handleProcessExit`, and indeed hasn't been the case for a
while – see 892dc54bd2.

Signed-off-by: Laura Brehm <laurabrehm@hey.com>
This commit is contained in:
Laura Brehm 2024-08-27 23:48:54 +01:00
parent e8104a4858
commit 7f3bf993d6
No known key found for this signature in database
GPG Key ID: 08EC1B0491948487

View File

@ -707,7 +707,6 @@ func (s *service) send(evt interface{}) {
s.events <- evt
}
// s.mu must be locked when calling handleProcessExit
func (s *service) handleProcessExit(e runcC.Exit, c *runc.Container, p process.Process) {
if ip, ok := p.(*process.Init); ok {
// Ensure all children are killed