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

Enable close-on-exec on socket #651

Merged
merged 2 commits into from
May 24, 2023

Conversation

tomc797
Copy link
Contributor

@tomc797 tomc797 commented May 6, 2023

By default, children processes inherit the parent's file descriptors. Enabling close-on-exec closes the file descriptor upon exec.

@tomc797 tomc797 requested a review from a team as a code owner May 6, 2023 07:18
When the close-on-exec flag is set, the file descriptor is automatically
closed upon a successful exec. This keeps a child process--such as one
started using system()--from inheriting the file descriptor.

Signed-off-by: Tom Carroll <[email protected]>
@scareything scareything merged commit 67f75f1 into openziti:main May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants