diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-11 20:15:21 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-11 20:15:21 +0000 |
commit | 4cfe4cbc62dfca59dba74f0e6811fd09e31609df (patch) | |
tree | 71d6ad60cf1475e8f8ddfd65ca276ce5c0d5df67 /src/socketengines/socketengine_epoll.cpp | |
parent | 8bc6254a5912f544c99623f0473d6f025f61b7b9 (diff) |
Hmm
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8579 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengines/socketengine_epoll.cpp')
-rw-r--r-- | src/socketengines/socketengine_epoll.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/socketengines/socketengine_epoll.cpp b/src/socketengines/socketengine_epoll.cpp index 9da569b8f..89b1ea1ef 100644 --- a/src/socketengines/socketengine_epoll.cpp +++ b/src/socketengines/socketengine_epoll.cpp @@ -38,6 +38,7 @@ EPollEngine::~EPollEngine() bool EPollEngine::AddFd(EventHandler* eh) { + ServerInstance->Log(DEBUG,"Add new fd: %d", eh->GetFd()); int fd = eh->GetFd(); if ((fd < 0) || (fd > MAX_DESCRIPTORS)) { @@ -120,6 +121,9 @@ int EPollEngine::DispatchEvents() socklen_t codesize; int errcode; int i = epoll_wait(EngineHandle, events, MAX_DESCRIPTORS, 1000); + + ServerInstance->Log(DEBUG,"DispatchEvents num events = %d of %d", i, CurrentSetSize); + for (int j = 0; j < i; j++) { if (events[j].events & EPOLLHUP) |