summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavidn <davidn@FreeBSD.org>1997-07-10 11:44:42 +0000
committerdavidn <davidn@FreeBSD.org>1997-07-10 11:44:42 +0000
commit9c6cf56f1738185a845de1b37dffaae5dfe32c45 (patch)
treeddc5ee9e8645f01526893d855a0715e2fede2f13
parent0b4e905ca91ef3d8d160b505f90e6e56ad41654f (diff)
downloadFreeBSD-src-9c6cf56f1738185a845de1b37dffaae5dfe32c45.zip
FreeBSD-src-9c6cf56f1738185a845de1b37dffaae5dfe32c45.tar.gz
Adds sysctl int for shutdown timeout.
Reviewed by: Poul-Henning Kamp <phk@dk.tfs.com>
-rw-r--r--sys/kern/init_main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 55d9256..5cc1c4a 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* @(#)init_main.c 8.9 (Berkeley) 1/21/94
- * $Id: init_main.c,v 1.64 1997/06/16 00:29:30 dyson Exp $
+ * $Id: init_main.c,v 1.65 1997/06/22 16:04:09 peter Exp $
*/
#include "opt_rlimit.h"
@@ -104,6 +104,10 @@ struct timeval boottime;
SYSCTL_STRUCT(_kern, KERN_BOOTTIME, boottime,
CTLFLAG_RW, &boottime, timeval, "");
+static int shutdowntimeout = 120;
+SYSCTL_INT(_kern, OID_AUTO, shutdown_timeout,
+ CTLFLAG_RW, &shutdowntimeout, 0, "");
+
#ifndef SMP /* per-cpu on smp */
struct timeval runtime;
#endif
OpenPOWER on IntegriCloud