mpd/src/system/EpollFD.cxx

13 lines
267 B
C++
Raw Normal View History

// SPDX-License-Identifier: BSD-2-Clause
// author: Max Kellermann <max.kellermann@gmail.com>
2018-08-22 15:31:19 +02:00
#include "EpollFD.hxx"
#include "Error.hxx"
2018-08-22 15:31:19 +02:00
EpollFD::EpollFD()
:fd(::epoll_create1(EPOLL_CLOEXEC))
{
if (!fd.IsDefined())
throw MakeErrno("epoll_create1() failed");
}