// SPDX-License-Identifier: BSD-2-Clause // author: Max Kellermann #include "EpollFD.hxx" #include "Error.hxx" EpollFD::EpollFD() :fd(::epoll_create1(EPOLL_CLOEXEC)) { if (!fd.IsDefined()) throw MakeErrno("epoll_create1() failed"); }