svn commit: r351810 - head/sys/kern

Andriy Gapon avg at FreeBSD.org
Wed Sep 4 13:27:01 UTC 2019


Author: avg
Date: Wed Sep  4 13:26:59 2019
New Revision: 351810
URL: https://svnweb.freebsd.org/changeset/base/351810

Log:
  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

Modified:
  head/sys/kern/kern_shutdown.c

Modified: head/sys/kern/kern_shutdown.c
==============================================================================
--- head/sys/kern/kern_shutdown.c	Wed Sep  4 09:54:21 2019	(r351809)
+++ head/sys/kern/kern_shutdown.c	Wed Sep  4 13:26:59 2019	(r351810)
@@ -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();


More information about the svn-src-all mailing list