18819b6b24
VELAPLATFO-18473 refs: https://man7.org/linux/man-pages/man2/fcntl.2.html If the FD_CLOEXEC bit is set, the file descriptor will automatically be closed during a successful execve(2). (If the execve(2) fails, the file descriptor is left open.) modify: 1. Ensure that the child task copies all fds of the parent task, including those with O_CLOEXE. 2. Make sure spawn_file_action is executed under fd with O_CLOEXEC, otherwise it will fail. 3. When a new task is activated or exec is called, close all fds with O_CLOEXEC flags. Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
exit.c | ||
Make.defs | ||
spawn.h | ||
task_activate.c | ||
task_cancelpt.c | ||
task_create.c | ||
task_delete.c | ||
task_execve.c | ||
task_exit.c | ||
task_exithook.c | ||
task_fork.c | ||
task_getgroup.c | ||
task_getpid.c | ||
task_getppid.c | ||
task_gettid.c | ||
task_init.c | ||
task_posixspawn.c | ||
task_prctl.c | ||
task_recover.c | ||
task_reparent.c | ||
task_restart.c | ||
task_setcancelstate.c | ||
task_setcanceltype.c | ||
task_setup.c | ||
task_spawn.c | ||
task_spawnparms.c | ||
task_start.c | ||
task_starthook.c | ||
task_terminate.c | ||
task_testcancel.c | ||
task.h |