svn commit: r200778 - head/usr.sbin/watchdogd
Ruslan Ermilov
ru at FreeBSD.org
Mon Dec 21 15:50:37 UTC 2009
Author: ru
Date: Mon Dec 21 15:50:37 2009
New Revision: 200778
URL: http://svn.freebsd.org/changeset/base/200778
Log:
Don't hide an error if the initial attempt to program a watchdog from
within watchdogd(8) fails. This is also consistent with watchdog(8).
Modified:
head/usr.sbin/watchdogd/watchdogd.c
Modified: head/usr.sbin/watchdogd/watchdogd.c
==============================================================================
--- head/usr.sbin/watchdogd/watchdogd.c Mon Dec 21 15:12:56 2009 (r200777)
+++ head/usr.sbin/watchdogd/watchdogd.c Mon Dec 21 15:50:37 2009 (r200778)
@@ -95,7 +95,7 @@ main(int argc, char *argv[])
if (is_daemon) {
if (watchdog_onoff(1) == -1)
- exit(EX_SOFTWARE);
+ err(EX_OSERR, "patting the dog");
pfh = pidfile_open(pidfile, 0600, &otherpid);
if (pfh == NULL) {
More information about the svn-src-all
mailing list