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).
This commit is contained in:
Ruslan Ermilov 2009-12-21 15:50:37 +00:00
parent 6d2d1fd59a
commit c409ce41b4

View File

@ -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) {