Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/kern_exec.c
Show First 20 Lines • Show All 1,045 Lines • ▼ Show 20 Lines | exec_new_vmspace(struct image_params *imgp, struct sysentvec *sv) | ||||
u_long ssiz; | u_long ssiz; | ||||
imgp->vmspace_destroyed = 1; | imgp->vmspace_destroyed = 1; | ||||
imgp->sysent = sv; | imgp->sysent = sv; | ||||
sigfastblock_clear(td); | sigfastblock_clear(td); | ||||
umtx_exec(p); | umtx_exec(p); | ||||
itimers_exec(p); | itimers_exec(p); | ||||
if (sv->sv_onexec != NULL) | |||||
sv->sv_onexec(p, imgp); | |||||
EVENTHANDLER_DIRECT_INVOKE(process_exec, p, imgp); | EVENTHANDLER_DIRECT_INVOKE(process_exec, p, imgp); | ||||
/* | /* | ||||
* Blow away entire process VM, if address space not shared, | * Blow away entire process VM, if address space not shared, | ||||
* otherwise, create a new VM space so that other threads are | * otherwise, create a new VM space so that other threads are | ||||
* not disrupted | * not disrupted | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 785 Lines • Show Last 20 Lines |