Stick proc0 in the PID hash table.

This commit is contained in:
jhb 2001-04-11 18:50:50 +00:00
parent 5091a293b0
commit 3588cc574a

View File

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