summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authornordin <nordin@openbsd.org>2002-01-30 20:29:44 +0000
committernordin <nordin@openbsd.org>2002-01-30 20:29:44 +0000
commit0d3f9ab1f9bfb88b0a8c16de338e08b00cd1f654 (patch)
treef36469a75a256c0edd4335f907876c8ba13e6fbe /sys/kern/init_main.c
parentuse defined(__ELF__) instead of a list of ELF architectures from which (diff)
downloadwireguard-openbsd-0d3f9ab1f9bfb88b0a8c16de338e08b00cd1f654.tar.xz
wireguard-openbsd-0d3f9ab1f9bfb88b0a8c16de338e08b00cd1f654.zip
Add proc0 to the PIDHASH table. art@ ok
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 2334eb947b4..d1cd0f7c354 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.91 2002/01/16 20:50:17 miod Exp $ */
+/* $OpenBSD: init_main.c,v 1.92 2002/01/30 20:29:44 nordin Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -243,6 +243,7 @@ main(framep)
*/
LIST_INSERT_HEAD(&allproc, p, p_list);
p->p_pgrp = &pgrp0;
+ LIST_INSERT_HEAD(PIDHASH(0), p, p_hash);
LIST_INSERT_HEAD(PGRPHASH(0), &pgrp0, pg_hash);
LIST_INIT(&pgrp0.pg_members);
LIST_INSERT_HEAD(&pgrp0.pg_members, p, p_pglist);