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:
parent
6d2d1fd59a
commit
c409ce41b4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user