A working watchdog API
Poul-Henning Kamp
phk at phk.freebsd.dk
Wed Jul 30 23:14:20 PDT 2003
In message <20030731054902.GJ10708 at 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 at 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.
More information about the freebsd-arch
mailing list