summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/watchdogd/watchdogd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/watchdogd/watchdogd.c b/usr.sbin/watchdogd/watchdogd.c
index 0c1b625..321fc5d 100644
--- a/usr.sbin/watchdogd/watchdogd.c
+++ b/usr.sbin/watchdogd/watchdogd.c
@@ -120,7 +120,8 @@ main(int argc, char *argv[])
timeout |= WD_PASSIVE;
else
timeout |= WD_ACTIVE;
- if (watchdog_patpat() < 0)
+ if (watchdog_patpat() < 0 &&
+ (timeout & WD_INTERVAL) != WD_TO_NEVER)
err(EX_OSERR, "patting the dog");
return (EX_OK);
}
OpenPOWER on IntegriCloud