Skip to content

v3.1.0: 3.1.0 Add functions to get/set the close-on-exec flag (#34)

Choose a tag to compare

@github-actions github-actions released this 09 Jul 17:07
· 55 commits to main since this release
e181c70
pid2 needs to set the close-on-exec flag on a certain file descriptor,
but node doesn't have an API to achieve this. The only other node module
that provides the `fcntl(2)` binding doesn't play well with esbuild, so
we need to recruit the help of our friend here.

This change adds two functions to get/set the close-on-exec flag on a
file descriptor.