summaryrefslogtreecommitdiffstats
path: root/usr.sbin/watchdogd/watchdogd.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+3
| | | | | | | | | 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)
* We no longer use struct eproc for kinfo_proc in sysctl.h so theremillert2012-12-181-1/+2
| | | | | | | 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@
* Lower stack size before mlockall(). With login.conf defaults for i386,sthen2009-06-241-1/+10
| | | | | | this avoids wiring (8MB-256KB). From AerieBSD. ok deraadt@
* Error out with usage line if additional arguments are given after thepyr2008-05-121-1/+6
| | | | | | option parsing. Found out the hard way by jdixon on ifstated. ok sobrado@, jdixon@, millert@
* tweaks.mbalmer2007-01-021-2/+2
|
* Do not name both a variable and a goto target 'restore'; it's legal, butmbalmer2006-12-231-4/+4
| | | | confusing. at least it confused thib...
* Let watchdogd use the new watchdog(4) semantics. When the new option -nmbalmer2006-12-211-8/+12
| | | | | | | | | | | (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
* Add a '-q' option to suppress warning messages.mbalmer2006-08-041-5/+8
|
* Code cleanup/shortening. No binary changes.mbalmer2006-06-261-11/+7
|
* Use the @openbsd.org email address for the copyright and add an AUTHORSmbalmer2006-01-171-2/+2
| | | | | | section. ok jmc@
* give it a bit highr priority and exit w/ failure if systcl ever fails; marc@ henning@ ok some time ago...mickey2005-09-241-2/+3
|
* link static and mlockall() once daemonised to prevent sudden pageins and wdog misfire; discussed a lot at wtf; mbalmer@ art@ okmickey2005-08-091-1/+3
|
* Use unsigned integers for period and nperiod.mbalmer2005-08-081-3/+3
| | | | ok henning@
* function prototypes, spacing, KNF, and other readability fixeshenning2005-08-081-22/+16
|
* Initial import of watchdogd, a daemon to retrigger the watchdog timermbalmer2005-08-081-0/+157
from userland (not yet linked to the build process). ok henning@