mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-03 14:34:21 +01:00
Merge pull request #6060 from ls-ggg/6055/service.mu-deadlock
runtime:all APIs are hang in the service.mu
This commit is contained in:
@@ -120,10 +120,12 @@ func watchSandbox(ctx context.Context, s *service) {
|
||||
if err == nil {
|
||||
return
|
||||
}
|
||||
s.monitor = nil
|
||||
|
||||
s.mu.Lock()
|
||||
defer s.mu.Unlock()
|
||||
|
||||
s.monitor = nil
|
||||
|
||||
// sandbox malfunctioning, cleanup as much as we can
|
||||
shimLog.WithError(err).Warn("sandbox stopped unexpectedly")
|
||||
err = s.sandbox.Stop(ctx, true)
|
||||
|
||||
Reference in New Issue
Block a user