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);