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

Problem: UDP socket descriptor leak with exec'd processes #1899

Closed
stephenprocter opened this issue Apr 18, 2018 · 0 comments · Fixed by #1901
Closed

Problem: UDP socket descriptor leak with exec'd processes #1899

stephenprocter opened this issue Apr 18, 2018 · 0 comments · Fixed by #1901

Comments

@stephenprocter
Copy link
Contributor

The zsys_udp_new() method does not set the O_CLOEXEC flag on the socket descriptor, which leads to the descriptor leaking if the process subsequently performs an exec(). This is a particular issue for the zbeacon class as the flag cannot be set by client code either, since the UDP socket descriptors are private to the class.

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 a pull request may close this issue.

1 participant