diff --git a/libappfuse/FuseBridgeLoop.cc b/libappfuse/FuseBridgeLoop.cc index 8b0c53eb2..ac94e6917 100644 --- a/libappfuse/FuseBridgeLoop.cc +++ b/libappfuse/FuseBridgeLoop.cc @@ -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;