Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/sysmon Make sure to clear sysmon_armed_wdog once the...



details:   https://anonhg.NetBSD.org/src/rev/a72dd16559f8
branches:  trunk
changeset: 503077:a72dd16559f8
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Jan 30 22:24:31 2001 +0000

description:
Make sure to clear sysmon_armed_wdog once the watchdog timer
is disarmed.

diffstat:

 sys/dev/sysmon/sysmon_wdog.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r f97cbe61eacf -r a72dd16559f8 sys/dev/sysmon/sysmon_wdog.c
--- a/sys/dev/sysmon/sysmon_wdog.c      Tue Jan 30 22:09:01 2001 +0000
+++ b/sys/dev/sysmon/sysmon_wdog.c      Tue Jan 30 22:24:31 2001 +0000
@@ -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 @@
                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)



Home | Main Index | Thread Index | Old Index