From nobody@FreeBSD.org  Wed Jun  8 03:38:51 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4926F16A41C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  8 Jun 2005 03:38:51 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 255AD43D1D
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  8 Jun 2005 03:38:51 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j583comi073661
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 8 Jun 2005 03:38:50 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j583cobr073660;
	Wed, 8 Jun 2005 03:38:50 GMT
	(envelope-from nobody)
Message-Id: <200506080338.j583cobr073660@www.freebsd.org>
Date: Wed, 8 Jun 2005 03:38:50 GMT
From: KOIE Hidetaka <koie@suri.co.jp>
To: freebsd-gnats-submit@FreeBSD.org
Subject: wachdog is fire shuttingdown.
X-Send-Pr-Version: www-2.3

>Number:         82014
>Category:       bin
>Synopsis:       wachdog is fire shuttingdown.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 08 03:40:08 GMT 2005
>Closed-Date:    Sun Apr 16 14:25:21 GMT 2006
>Last-Modified:  Sun Apr 16 14:25:21 GMT 2006
>Originator:     KOIE Hidetaka
>Release:        CURRENT
>Organization:
Suri giken
>Environment:
FreeBSD sakura.suri.co.jp 6.0-CURRENT FreeBSD 6.0-CURRENT #3: Wed Jun  8 11:21:58 JST 2005     koie@sakura.suri.co.jp:/usr/obj/usr/src/sys/SAKURA  i386

>Description:
      I try watchdogd.  wachdogd does not stop the timer in the kernel when exitting, kernel panics during long shutdown process.

>How-To-Repeat:
1. make kernel with SW_WATCHDOG
2. reboot
3. /usr/sbin/watchdogd -d
4. SIGINT
5. panic after 15 secs.

>Fix:
watchdog_onoff(int onoff)
{
        if (onoff)
                timeout |= WD_ACTIVE;
        else
                timeout = WD_TO_NEVER; /*FIX*/
        return watchdog_patpat();
}

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Sun Apr 16 14:23:25 UTC 2006 
State-Changed-Why:  
Duplicate of kern/74386.  emaste@ has fixed the issue 
in rev.1.181 sys/kern/kern_clock.c. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=82014 
>Unformatted:
