Skip to content

Commit

Permalink
DAOS-14826 client: reserve low fds (#13532)
Browse files Browse the repository at this point in the history
Reserve low fd to avoid daos network contexts use them.
Fix a corner case in fstatat() to mimic libc and add unit test.
Rely on libc dup2() to get desired fd to avoid error "failed to get the desired fd in dup2()".
Use atomic APIs to access daos_inited.
Move pthread_atfork() inside locked region to avoid multiple execution.
Call glibc chdir() to update process's cwd in kernel state.
Introduce fd duplication reference count to handle complex situation

Add a unit test to make sure daos does not use low fd.

Signed-off-by: Lei Huang <[email protected]>
  • Loading branch information
wiliamhuang authored Jan 29, 2024
1 parent 3521824 commit c897d29
Show file tree
Hide file tree
Showing 3 changed files with 342 additions and 115 deletions.
Loading

0 comments on commit c897d29

Please sign in to comment.