Skip to content

Commit

Permalink
added CLOSE_RANGE_UNSHARE defined for syscall of close_range.
Browse files Browse the repository at this point in the history
  • Loading branch information
klemens-morgenstern committed Jul 20, 2024
1 parent 3719df3 commit 5f80218
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/posix/close_handles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ int fdwalk(int (*func)(void *, int), void *cd);
#if defined(SYS_close_range)

#define BOOST_PROCESS_V2_HAS_CLOSE_RANGE 1
#if !defined(CLOSE_RANGE_UNSHARE)
#define CLOSE_RANGE_UNSHARE 2
#endif

int close_range(unsigned int first, unsigned int last, int flags)
{
return ::syscall(SYS_close_range, first, last, flags);
Expand Down

0 comments on commit 5f80218

Please sign in to comment.