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

Should use CLOEXEC for epoll_create and eventfd #6

Open
funny-falcon opened this issue Jun 24, 2018 · 0 comments
Open

Should use CLOEXEC for epoll_create and eventfd #6

funny-falcon opened this issue Jun 24, 2018 · 0 comments

Comments

@funny-falcon
Copy link

Epoll has EPOLL_CLOEXEC and eventfd EFD_CLOEXEC to close socket after calling to exec syscall. While it is strange to be highload network server and call os.StartProcess or exec.Command at the same time, still better to provide this flags for consistency with Go runtime.

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

No branches or pull requests

1 participant