mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Stop the old watchdog during restore
As we switch to a new watchdog during restore, there is no need to keep the old one running anymore. Signed-off-by: Tianyu Zhou <albert.zty@antgroup.com>
This commit is contained in:
@@ -242,6 +242,7 @@ func (r *restorer) restore(l *Loader) error {
|
||||
dog := watchdog.New(l.k, dogOpts)
|
||||
|
||||
// Change the loader fields to reflect the changes made when restoring.
|
||||
l.watchdog.Stop()
|
||||
l.watchdog = dog
|
||||
l.root.procArgs = kernel.CreateProcessArgs{}
|
||||
l.restore = true
|
||||
|
||||
Reference in New Issue
Block a user