summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2004-01-21 19:03:44 +0000
committertedu <tedu@openbsd.org>2004-01-21 19:03:44 +0000
commit3ad03e093b26b30bf826b2d15b184488e2fd1874 (patch)
treef651f41b119d8309b655b3dde4fb1b318ea9d863
parentfix Makefile (diff)
downloadwireguard-openbsd-3ad03e093b26b30bf826b2d15b184488e2fd1874.tar.xz
wireguard-openbsd-3ad03e093b26b30bf826b2d15b184488e2fd1874.zip
call timeout_startup early, so timeouts are available. report from sam smith
ok art deraadt
-rw-r--r--sys/kern/init_main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index efc735280b8..a8812c2b15c 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.110 2004/01/14 19:34:05 grange Exp $ */
+/* $OpenBSD: init_main.c,v 1.111 2004/01/21 19:03:44 tedu Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -195,6 +195,11 @@ main(framep)
curproc = p = &proc0;
/*
+ * Initialize timeouts.
+ */
+ timeout_startup();
+
+ /*
* Attempt to find console and initialize
* in case of early panic or other messages.
*/
@@ -217,11 +222,6 @@ main(framep)
/* Initalize sockets. */
soinit();
- /*
- * Initialize timeouts.
- */
- timeout_startup();
-
/* Initialize sysctls (must be done before any processes run) */
sysctl_init();