From 387df3b8057dcefb3968b0d28646c9a1cb1cc80d Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Wed, 4 Sep 2019 13:26:59 +0000 Subject: [PATCH] shutdown_halt: make sure that watchdog timer is stopped The point of halt is to keep the machine in limbo. Reviewed by: kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D21222 --- sys/kern/kern_shutdown.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index 52f12ab8478b..f3e283563d97 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -592,6 +592,9 @@ shutdown_halt(void *junk, int howto) printf("\n"); printf("The operating system has halted.\n"); printf("Please press any key to reboot.\n\n"); + + wdog_kern_pat(WD_TO_NEVER); + switch (cngetc()) { case -1: /* No console, just die */ cpu_halt();