Skip to content

Commit

Permalink
backports: Add a backport of g_closefrom(), g_fdwalk_set_cloexec()
Browse files Browse the repository at this point in the history
These will be new API in GLib 2.79.2.

The only code change in the implementation, other than the _glnx
wrappers, was to use `close()` instead of `g_close (fd, NULL)` in a
context where it must be async-signal safe.

The test-case needed some more adjustments to be backwards-compatible
with GLib from the distant past.

Signed-off-by: Simon McVittie <[email protected]>
  • Loading branch information
smcv committed Feb 9, 2024
1 parent b415d04 commit 6ada39c
Show file tree
Hide file tree
Showing 4 changed files with 629 additions and 9 deletions.

0 comments on commit 6ada39c

Please sign in to comment.