From 3cb232696f29bc8e8ad1df814ba1319cdc5c6794 Mon Sep 17 00:00:00 2001 From: delphij Date: Fri, 10 Feb 2017 06:53:48 +0000 Subject: [PATCH] MFC r274583: Default to use 10 seconds as nap interval instead of 1. git-svn-id: svn://svn.freebsd.org/base/stable/10@313533 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- usr.sbin/watchdogd/watchdogd.8 | 2 +- usr.sbin/watchdogd/watchdogd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/watchdogd/watchdogd.8 b/usr.sbin/watchdogd/watchdogd.8 index 5f4b68ad5..cdf57788a 100644 --- a/usr.sbin/watchdogd/watchdogd.8 +++ b/usr.sbin/watchdogd/watchdogd.8 @@ -80,7 +80,7 @@ reboot if there are problems with the script. The .Fl s Ar sleep argument can be used to control the sleep period between each execution -of the check and defaults to one second. +of the check and defaults to 10 seconds. .Pp The .Fl t Ar timeout diff --git a/usr.sbin/watchdogd/watchdogd.c b/usr.sbin/watchdogd/watchdogd.c index 3bad9acb7..1271bbfe3 100644 --- a/usr.sbin/watchdogd/watchdogd.c +++ b/usr.sbin/watchdogd/watchdogd.c @@ -80,7 +80,7 @@ static u_int timeout = WD_TO_128SEC; static u_int exit_timeout = WD_TO_NEVER; static u_int pretimeout = 0; static u_int timeout_sec; -static u_int nap = 1; +static u_int nap = 10; static int passive = 0; static int is_daemon = 0; static int is_dry_run = 0; /* do not arm the watchdog, only -- 2.45.0