Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_fork.c
Show First 20 Lines • Show All 592 Lines • ▼ Show 20 Lines | #endif | ||||
p2->p_pgrp = p1->p_pgrp; | p2->p_pgrp = p1->p_pgrp; | ||||
LIST_INSERT_AFTER(p1, p2, p_pglist); | LIST_INSERT_AFTER(p1, p2, p_pglist); | ||||
PGRP_UNLOCK(p1->p_pgrp); | PGRP_UNLOCK(p1->p_pgrp); | ||||
LIST_INIT(&p2->p_children); | LIST_INIT(&p2->p_children); | ||||
LIST_INIT(&p2->p_orphans); | LIST_INIT(&p2->p_orphans); | ||||
callout_init_mtx(&p2->p_itcallout, &p2->p_mtx, 0); | callout_init_mtx(&p2->p_itcallout, &p2->p_mtx, 0); | ||||
TAILQ_INIT(&p2->p_kqtim_stop); | |||||
/* | /* | ||||
* This begins the section where we must prevent the parent | * This begins the section where we must prevent the parent | ||||
* from being swapped. | * from being swapped. | ||||
*/ | */ | ||||
_PHOLD(p1); | _PHOLD(p1); | ||||
PROC_UNLOCK(p1); | PROC_UNLOCK(p1); | ||||
▲ Show 20 Lines • Show All 533 Lines • Show Last 20 Lines |