Skip to content

Commit

Permalink
Merge pull request #1431 from krehm/master
Browse files Browse the repository at this point in the history
libibverbs: ignore IBV_FORK_SAFE et.al. when kernel has fork support
  • Loading branch information
rleon committed Mar 3, 2024
2 parents db730b4 + 5a11b68 commit 3ff0150
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libibverbs/memory.c
Expand Up @@ -134,6 +134,9 @@ int ibv_fork_init(void)
if (mm_root)
return 0;

if (ibv_is_fork_initialized() == IBV_FORK_UNNEEDED)
return 0;

if (too_late)
return EINVAL;

Expand Down

0 comments on commit 3ff0150

Please sign in to comment.