Merge "use epoll_create1(EPOLL_CLOEXEC)"

This commit is contained in:
Nick Kralevich 2018-12-17 23:43:13 +00:00 committed by Gerrit Code Review
commit f328edd142

View file

@ -311,7 +311,7 @@ class BridgeEpollController : private EpollController {
};
FuseBridgeLoop::FuseBridgeLoop() : opened_(true) {
base::unique_fd epoll_fd(epoll_create1(/* no flag */ 0));
base::unique_fd epoll_fd(epoll_create1(EPOLL_CLOEXEC));
if (epoll_fd.get() == -1) {
PLOG(ERROR) << "Failed to open FD for epoll";
opened_ = false;