Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: add SOCK_CLOEXEC to socket creation #88

Merged
merged 1 commit into from
Nov 17, 2024

Conversation

smira
Copy link
Contributor

@smira smira commented Oct 1, 2024

Go runtime automatically adds this flag, but when using raw syscalls, it should be added manually.

Without this flag, the process leaks a file descriptor on fork/exec.

Go runtime automatically adds this flag, but when using raw syscalls, it
should be added manually.

Without this flag, the process leaks a file descriptor on fork/exec.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
@safchain safchain merged commit efcb03b into safchain:master Nov 17, 2024
smira added a commit to smira/talos that referenced this pull request Nov 18, 2024
See siderolabs#9412

PR merged safchain/ethtool#88

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants