From owner-freebsd-arch@FreeBSD.ORG Wed Jul 30 23:14:19 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3EF937B401; Wed, 30 Jul 2003 23:14:19 -0700 (PDT) Received: from phk.freebsd.dk (phk.freebsd.dk [212.242.86.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id B7EAB43FB1; Wed, 30 Jul 2003 23:14:18 -0700 (PDT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by phk.freebsd.dk (8.12.8/8.12.8) with ESMTP id h6V6EDV3001774; Thu, 31 Jul 2003 06:14:13 GMT (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.9/8.12.9) with ESMTP id h6V6EC5H007896; Thu, 31 Jul 2003 08:14:12 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: John-Mark Gurney From: "Poul-Henning Kamp" In-Reply-To: Your message of "Wed, 30 Jul 2003 22:49:02 PDT." <20030731054902.GJ10708@funkthat.com> Date: Thu, 31 Jul 2003 08:14:12 +0200 Message-ID: <7895.1059632052@critter.freebsd.dk> cc: arch@freebsd.org cc: Sean Kelly Subject: Re: A working watchdog API X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2003 06:14:20 -0000 In message <20030731054902.GJ10708@funkthat.com>, John-Mark Gurney writes: >Sean Kelly wrote this message on Wed, Jul 30, 2003 at 19:23 -0500: >> watchdog_tickle() > >Why not pet the dog to keep it happy. If you tickle it, it might bite >your hand off! > >(A friend of mine told me that the man page for Solaris talks about >petting the dog to keep it from rebooting the box, etc.) We're way ahead of you: $ grep IOC /sys/sys/watchdog.h #define WDIOCPATPAT _IOW('W', 42, u_int) * program calls WDIOCPATPAT again before the timer expires -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.