summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-04-11 18:50:50 +0000
committerjhb <jhb@FreeBSD.org>2001-04-11 18:50:50 +0000
commit3588cc574a9693e7d8cb527e9f280f3c78289343 (patch)
tree035647b42e68320239d6a777f27fa7dc5c64a439 /sys/kern/init_main.c
parent5091a293b0e0f0f468ee71ca63778695e9ed593e (diff)
downloadFreeBSD-src-3588cc574a9693e7d8cb527e9f280f3c78289343.zip
FreeBSD-src-3588cc574a9693e7d8cb527e9f280f3c78289343.tar.gz
Stick proc0 in the PID hash table.
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index a882711..a27b3e3 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -287,6 +287,7 @@ proc0_init(void *dummy __unused)
* Create process 0 (the swapper).
*/
LIST_INSERT_HEAD(&allproc, p, p_list);
+ LIST_INSERT_HEAD(PIDHASH(0), p, p_hash);
p->p_pgrp = &pgrp0;
LIST_INSERT_HEAD(PGRPHASH(0), &pgrp0, pg_hash);
LIST_INIT(&pgrp0.pg_members);
OpenPOWER on IntegriCloud