From b57a272f679e6deac74de452f96b45a5ab51eac6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 11 Aug 2017 09:39:47 +0200 Subject: [PATCH] system/EPollFD: throw exception instead of raising fatal error --- src/system/EPollFD.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/EPollFD.cxx b/src/system/EPollFD.cxx index 0a9e2eb9c..fd472c2c3 100644 --- a/src/system/EPollFD.cxx +++ b/src/system/EPollFD.cxx @@ -20,7 +20,7 @@ #include "config.h" #ifdef USE_EPOLL #include "EPollFD.hxx" -#include "FatalError.hxx" +#include "Error.hxx" #ifdef __BIONIC__ @@ -41,7 +41,7 @@ EPollFD::EPollFD() :fd(::epoll_create1(EPOLL_CLOEXEC)) { if (fd < 0) - FatalSystemError("epoll_create1() failed"); + throw MakeErrno("epoll_create1() failed"); } #endif /* USE_EPOLL */