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

Use CLOEXEC flag where possible #157

Open
DerDakon opened this issue Jun 18, 2020 · 0 comments
Open

Use CLOEXEC flag where possible #157

DerDakon opened this issue Jun 18, 2020 · 0 comments

Comments

@DerDakon
Copy link
Member

This flag prevents that descriptors are shared beyond an exec*() call. Setting it via fcntl() on pipes or requesting it directly in the wrappers in open.h would remove the burden to close a lot of them. We can not use it unconditionally, as sometimes the descriptors actually should be passed down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant