summaryrefslogtreecommitdiff
path: root/src/socketengine_epoll.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socketengine_epoll.cpp')
-rw-r--r--src/socketengine_epoll.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/socketengine_epoll.cpp b/src/socketengine_epoll.cpp
index 1cf5bd8c1..55d3cb1ea 100644
--- a/src/socketengine_epoll.cpp
+++ b/src/socketengine_epoll.cpp
@@ -99,7 +99,10 @@ bool EPollEngine::DelFd(EventHandler* eh, bool force)
int i = epoll_ctl(EngineHandle, EPOLL_CTL_DEL, fd, &ev);
if (i < 0 && !force)
+ {
+ ServerInstance->Log(DEBUG,"Cant remove socket: %s", strerror(errno));
return false;
+ }
ServerInstance->Log(DEBUG,"Remove file descriptor: %d", fd);
return true;