diff options
author | ru <ru@FreeBSD.org> | 2009-12-21 15:50:37 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2009-12-21 15:50:37 +0000 |
commit | d2993e53cda49846ca799116a5ef6d5e7145f4f7 (patch) | |
tree | c8d1ef3fe9ba589a68ae9701a9df1a3fd10956f7 /usr.sbin/watchdogd | |
parent | 33537de527b4552087bee1470a925b94f9824e3e (diff) | |
download | FreeBSD-src-d2993e53cda49846ca799116a5ef6d5e7145f4f7.zip FreeBSD-src-d2993e53cda49846ca799116a5ef6d5e7145f4f7.tar.gz |
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).
Diffstat (limited to 'usr.sbin/watchdogd')
-rw-r--r-- | usr.sbin/watchdogd/watchdogd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/watchdogd/watchdogd.c b/usr.sbin/watchdogd/watchdogd.c index 6f0e840..ec010cb 100644 --- a/usr.sbin/watchdogd/watchdogd.c +++ b/usr.sbin/watchdogd/watchdogd.c @@ -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) { |