From 0d58a452a0ea16104f5df1fb8273897e950ef6e7 Mon Sep 17 00:00:00 2001 From: Tianyu Zhou Date: Wed, 8 May 2024 20:10:49 +0800 Subject: [PATCH] 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 --- runsc/boot/restore.go | 1 + 1 file changed, 1 insertion(+) diff --git a/runsc/boot/restore.go b/runsc/boot/restore.go index 3ea078891..21d63bcb8 100644 --- a/runsc/boot/restore.go +++ b/runsc/boot/restore.go @@ -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