dongjiuzhu1 18819b6b24 sched/task: close file descriptor with O_CLOEXEC before active task or exec
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>
2023-10-27 21:15:07 +08:00
..
2023-05-17 10:24:42 +08:00
2022-08-02 21:04:19 +08:00
2023-07-11 23:32:17 +08:00
2023-09-08 00:59:31 +03:00
2023-10-14 12:28:41 -04:00
2023-10-19 21:38:45 +08:00
2023-10-19 21:38:45 +08:00
2023-07-13 10:11:58 +08:00
2023-07-13 10:11:58 +08:00
2023-07-11 23:32:17 +08:00
2023-07-28 20:56:22 -07:00
2023-09-07 23:11:10 +08:00
2022-12-10 02:36:24 +08:00
2023-05-19 02:40:38 +08:00
2023-07-11 23:32:17 +08:00
2023-07-29 07:28:23 -07:00
2023-05-05 18:36:36 +08:00