system/EPollFD: throw exception instead of raising fatal error

This commit is contained in:
Max Kellermann 2017-08-11 09:39:47 +02:00
parent ef79647e85
commit b57a272f67
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@
#include "config.h" #include "config.h"
#ifdef USE_EPOLL #ifdef USE_EPOLL
#include "EPollFD.hxx" #include "EPollFD.hxx"
#include "FatalError.hxx" #include "Error.hxx"
#ifdef __BIONIC__ #ifdef __BIONIC__
@ -41,7 +41,7 @@ EPollFD::EPollFD()
:fd(::epoll_create1(EPOLL_CLOEXEC)) :fd(::epoll_create1(EPOLL_CLOEXEC))
{ {
if (fd < 0) if (fd < 0)
FatalSystemError("epoll_create1() failed"); throw MakeErrno("epoll_create1() failed");
} }
#endif /* USE_EPOLL */ #endif /* USE_EPOLL */