OpenBSD CVS

CVS log for src/usr.sbin/watchdogd/watchdogd.c


[BACK] Up to [local] / src / usr.sbin / watchdogd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.16 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:15 2023 UTC (15 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.15: +1 -2 lines
Diff to previous 1.15 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:22 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.14: +3 -2 lines
Diff to previous 1.14 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.14 / (download) - annotate - [select for diffs], Tue Dec 18 21:28:45 2012 UTC (11 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

We no longer use struct eproc for kinfo_proc in sysctl.h so there
is no direct need for sys/proc.h or sys/resource.h.  Some consumers
of kinfo_proc need these for the proc flags and rlimit defines like
RLIM_INF so add the appropriate includes to them.
OK deraadt@ sthen@

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jun 24 14:28:19 2009 UTC (14 years, 11 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.12: +10 -1 lines
Diff to previous 1.12 (colored)

Lower stack size before mlockall(). With login.conf defaults for i386,
this avoids wiring (8MB-256KB).  From AerieBSD.

ok deraadt@

Revision 1.12 / (download) - annotate - [select for diffs], Mon May 12 19:15:02 2008 UTC (16 years, 1 month ago) by pyr
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.11: +6 -1 lines
Diff to previous 1.11 (colored)

Error out with usage line if additional arguments are given after the
option parsing. Found out the hard way by jdixon on ifstated.

ok sobrado@, jdixon@, millert@

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jan 2 22:46:37 2007 UTC (17 years, 5 months ago) by mbalmer
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

tweaks.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Dec 23 10:37:33 2006 UTC (17 years, 5 months ago) by mbalmer
Branch: MAIN
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored)

Do not name both a variable and a goto target 'restore'; it's legal, but
confusing.  at least it confused thib...

Revision 1.9 / (download) - annotate - [select for diffs], Thu Dec 21 15:51:54 2006 UTC (17 years, 5 months ago) by mbalmer
Branch: MAIN
Changes since 1.8: +12 -8 lines
Diff to previous 1.8 (colored)

Let watchdogd use the new watchdog(4) semantics.  When the new option -n
(no restore) is specified, the watchdog will not be restored to it's
original values when watchdogd terminates.

that means, when watchdogd is run with -n and you 'halt' the system, the
watchdog hardware will reset it.  which is wanted when the machine is
remote and the system shuts down unplanned.

"looks ok" markus

Revision 1.8 / (download) - annotate - [select for diffs], Fri Aug 4 11:04:55 2006 UTC (17 years, 10 months ago) by mbalmer
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.7: +8 -5 lines
Diff to previous 1.7 (colored)

Add a '-q' option to suppress warning messages.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jun 26 06:16:09 2006 UTC (17 years, 11 months ago) by mbalmer
Branch: MAIN
Changes since 1.6: +7 -11 lines
Diff to previous 1.6 (colored)

Code cleanup/shortening.  No binary changes.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jan 17 11:38:50 2006 UTC (18 years, 4 months ago) by mbalmer
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Use the @openbsd.org email address for the copyright and add an AUTHORS
section.

ok jmc@

Revision 1.5 / (download) - annotate - [select for diffs], Sat Sep 24 17:39:52 2005 UTC (18 years, 8 months ago) by mickey
Branch: MAIN
Changes since 1.4: +3 -2 lines
Diff to previous 1.4 (colored)

give it a bit highr priority and exit w/ failure if systcl ever fails; marc@ henning@ ok some time ago...

Revision 1.4 / (download) - annotate - [select for diffs], Tue Aug 9 15:09:06 2005 UTC (18 years, 10 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored)

link static and mlockall() once daemonised to prevent sudden pageins and wdog misfire; discussed a lot at wtf; mbalmer@ art@ ok

Revision 1.3 / (download) - annotate - [select for diffs], Mon Aug 8 13:08:09 2005 UTC (18 years, 10 months ago) by mbalmer
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Use unsigned integers for period and nperiod.

ok henning@

Revision 1.2 / (download) - annotate - [select for diffs], Mon Aug 8 12:48:06 2005 UTC (18 years, 10 months ago) by henning
Branch: MAIN
Changes since 1.1: +16 -22 lines
Diff to previous 1.1 (colored)

function prototypes, spacing, KNF, and other readability fixes

Revision 1.1 / (download) - annotate - [select for diffs], Mon Aug 8 12:08:56 2005 UTC (18 years, 10 months ago) by mbalmer
Branch: MAIN

Initial import of watchdogd, a daemon to retrigger the watchdog timer
from userland (not yet linked to the build process).

ok henning@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.