diff options
author | Dean Deng <deandeng@google.com> | 2020-12-14 10:44:53 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-12-14 10:47:01 -0800 |
commit | 65e4ed8fbe15e3a8ebf96fdacf439d30d8a0e491 (patch) | |
tree | b2de965c5d31988928012e5ac77a90a2af327c71 /pkg/sentry/control | |
parent | ab593661efe4924369265a6b9f0dc719dcb371ab (diff) |
Do not check for reference leaks after saving.
We should not assert that all resources are dropped after saving.
PiperOrigin-RevId: 347420131
Diffstat (limited to 'pkg/sentry/control')
-rw-r--r-- | pkg/sentry/control/state.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/sentry/control/state.go b/pkg/sentry/control/state.go index d800f2c85..62eaca965 100644 --- a/pkg/sentry/control/state.go +++ b/pkg/sentry/control/state.go @@ -62,6 +62,7 @@ func (s *State) Save(o *SaveOpts, _ *struct{}) error { Callback: func(err error) { if err == nil { log.Infof("Save succeeded: exiting...") + s.Kernel.SetSaveSuccess(false /* autosave */) } else { log.Warningf("Save failed: exiting...") s.Kernel.SetSaveError(err) |