diff options
| author | thorpej <thorpej@NetBSD.org> | 2001-01-30 22:24:31 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2001-01-30 22:24:31 +0000 |
| commit | 4e7ff09e27fe12f88fcd6983cbef805d235d6f7b (patch) | |
| tree | a3f6d211850c74d81ac7216785d3fee0bcd1dff8 /sys/dev | |
| parent | f17240abbc580ccb731d5bcb1579728e8449bdfb (diff) | |
Make sure to clear sysmon_armed_wdog once the watchdog timer
is disarmed.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/sysmon/sysmon_wdog.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sysmon/sysmon_wdog.c b/sys/dev/sysmon/sysmon_wdog.c index 67db0211a1e..5bb162eb2f0 100644 --- a/sys/dev/sysmon/sysmon_wdog.c +++ b/sys/dev/sysmon/sysmon_wdog.c @@ -1,4 +1,4 @@ -/* $NetBSD: sysmon_wdog.c,v 1.1 2000/11/05 04:06:14 thorpej Exp $ */ +/* $NetBSD: sysmon_wdog.c,v 1.2 2001/01/30 22:24:31 thorpej Exp $ */ /*- * Copyright (c) 2000 Zembu Labs, Inc. @@ -398,6 +398,7 @@ sysmon_wdog_setmode(struct sysmon_wdog *smw, int mode, u_int period) smw->smw_mode = omode; } else { if ((mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) { + sysmon_armed_wdog = NULL; smw->smw_tickler = (pid_t) -1; smw->smw_refcnt--; if ((omode & WDOG_MODE_MASK) == WDOG_MODE_KTICKLE) |
