Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.1.0 Add functions to get/set the close-on-exec flag #34

Merged
merged 1 commit into from
Jul 9, 2024
Merged

Conversation

lhchavez
Copy link
Contributor

@lhchavez lhchavez commented Jul 9, 2024

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.

@lhchavez lhchavez force-pushed the lh-cloexec branch 2 times, most recently from 001889d to 7468b65 Compare July 9, 2024 16:38
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.
@lhchavez lhchavez merged commit e181c70 into main Jul 9, 2024
4 checks passed
@lhchavez lhchavez deleted the lh-cloexec branch July 9, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants