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 | ||
fs_files.c | ||
fs_foreachinode.c | ||
fs_inode.c | ||
fs_inodeaddref.c | ||
fs_inodebasename.c | ||
fs_inodefind.c | ||
fs_inodefree.c | ||
fs_inodegetpath.c | ||
fs_inoderelease.c | ||
fs_inoderemove.c | ||
fs_inodereserve.c | ||
fs_inodesearch.c | ||
inode.h | ||
Make.defs |