Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_fork.c
Show First 20 Lines • Show All 491 Lines • ▼ Show 20 Lines | #endif | ||||
sched_fork(td, td2); | sched_fork(td, td2); | ||||
thread_unlock(td); | thread_unlock(td); | ||||
/* | /* | ||||
* Duplicate sub-structures as needed. | * Duplicate sub-structures as needed. | ||||
* Increase reference counts on shared objects. | * Increase reference counts on shared objects. | ||||
*/ | */ | ||||
p2->p_flag = P_INMEM; | p2->p_flag = P_INMEM; | ||||
p2->p_flag2 = p1->p_flag2 & (P2_NOTRACE | P2_NOTRACE_EXEC | P2_TRAPCAP); | p2->p_flag2 = p1->p_flag2 & (P2_ASLR_DISABLE | P2_ASLR_ENABLE | | ||||
P2_ASLR_IGNSTART | P2_NOTRACE | P2_NOTRACE_EXEC | P2_TRAPCAP); | |||||
p2->p_swtick = ticks; | p2->p_swtick = ticks; | ||||
if (p1->p_flag & P_PROFIL) | if (p1->p_flag & P_PROFIL) | ||||
startprofclock(p2); | startprofclock(p2); | ||||
/* | /* | ||||
* Whilst the proc lock is held, copy the VM domain data out | * Whilst the proc lock is held, copy the VM domain data out | ||||
* using the VM domain method. | * using the VM domain method. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 608 Lines • Show Last 20 Lines |