mailru / easygo

Tools for building go apps.
MIT License
673 stars 123 forks source link

Should use CLOEXEC for epoll_create and eventfd #6

Open funny-falcon opened 6 years ago

funny-falcon commented 6 years ago

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.