diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-04-18 13:07:01 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-04-18 13:07:01 +0000 |
commit | 50e3440cd4a7da15595757cdd41f82774957d496 (patch) | |
tree | fc27099369ddec6ec992cf3ece39738245764014 | |
parent | 1b8ec84cc7fc4820d275fd01d22e50e2fa4d660a (diff) |
set the params that govern watchdog behaviour back to defaults when the
wdog is shut down.
from mk. ok markus@
-rw-r--r-- | sys/kern/kern_watchdog.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 |