Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_exec.c
Show First 20 Lines • Show All 694 Lines • ▼ Show 20 Lines | if (args->fdp != NULL) { | ||||
args->fdp = NULL; | args->fdp = NULL; | ||||
} else { | } else { | ||||
/* | /* | ||||
* Keep on using the existing file descriptor table. For | * Keep on using the existing file descriptor table. For | ||||
* security and other reasons, the file descriptor table | * security and other reasons, the file descriptor table | ||||
* cannot be shared after an exec. | * cannot be shared after an exec. | ||||
*/ | */ | ||||
fdunshare(td); | fdunshare(td); | ||||
pdunshare(td); | |||||
/* close files on exec */ | /* close files on exec */ | ||||
fdcloseexec(td); | fdcloseexec(td); | ||||
} | } | ||||
/* | /* | ||||
* Malloc things before we need locks. | * Malloc things before we need locks. | ||||
*/ | */ | ||||
i = exec_args_get_begin_envv(imgp->args) - imgp->args->begin_argv; | i = exec_args_get_begin_envv(imgp->args) - imgp->args->begin_argv; | ||||
▲ Show 20 Lines • Show All 1,131 Lines • Show Last 20 Lines |