mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-23 18:25:19 +00:00
Adds sysctl int for shutdown timeout.
Reviewed by: Poul-Henning Kamp <phk@dk.tfs.com>
This commit is contained in:
parent
64d5f04e87
commit
f4e39ee7af
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27322
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue