Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 2009 15:50:37 +0000 (UTC)
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200778 - head/usr.sbin/watchdogd
Message-ID:  <200912211550.nBLFobL7032318@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912211550.nBLFobL7032318>