From 50e3440cd4a7da15595757cdd41f82774957d496 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Tue, 18 Apr 2006 13:07:01 +0000 Subject: set the params that govern watchdog behaviour back to defaults when the wdog is shut down. from mk. ok markus@ --- sys/kern/kern_watchdog.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/kern') diff --git a/sys/kern/kern_watchdog.c b/sys/kern/kern_watchdog.c index d27927fbef4..365b6ff7d54 100644 --- a/sys/kern/kern_watchdog.c +++ b/sys/kern/kern_watchdog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_watchdog.c,v 1.2 2005/11/28 00:14:29 jsg Exp $ */ +/* $OpenBSD: kern_watchdog.c,v 1.3 2006/04/18 13:07:00 dlg Exp $ */ /* * Copyright (c) 2003 Markus Friedl. All rights reserved. @@ -71,6 +71,9 @@ wdog_shutdown(void *arg) return; timeout_del(&wdog_timeout); (void) (*wdog_ctl_cb)(wdog_ctl_cb_arg, 0); + wdog_ctl_cb = NULL; + wdog_period = 0; + wdog_auto = 1; } int -- cgit v1.2.3