diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_ident.cpp | 3 | ||||
-rw-r--r-- | src/socketengine_epoll.cpp | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 723b30c87..fc663c714 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -175,9 +175,10 @@ class IdentRequestSocket : public EventHandler { if (GetFd() > -1) { + ServerInstance->Log(DEBUG,"Close ident socket %d", GetFd()); + ServerInstance->SE->DelFd(this); ServerInstance->SE->Close(GetFd()); ServerInstance->SE->Shutdown(GetFd(), SHUT_WR); - ServerInstance->SE->DelFd(this); this->SetFd(-1); } } 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; |