Commit b57a272f authored by Max Kellermann's avatar Max Kellermann

system/EPollFD: throw exception instead of raising fatal error

parent ef79647e
...@@ -20,7 +20,7 @@ ...@@ -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() ...@@ -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 */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment