Stick proc0 in the PID hash table.

This commit is contained in:
John Baldwin 2001-04-11 18:50:50 +00:00
parent 274f7445fd
commit 7b531e6037
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75423

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