From 7b531e60377db4b21bed4572abc1d7b5e0b9572d Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 11 Apr 2001 18:50:50 +0000 Subject: [PATCH] Stick proc0 in the PID hash table. --- sys/kern/init_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index a882711e522b..a27b3e3ae84b 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);