diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-12 12:48:07 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-12 12:48:07 +0000 |
commit | c4dffdedf72f6a2061e19725e4b50b2d28397085 (patch) | |
tree | 36b05594c8d276b8c9315076ad797823b7b17262 | |
parent | 8b22f9f8b7b5737fe2f9046e5c8219200b9bd1be (diff) |
Test change to level-triggered epoll
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2779 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/socketengine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socketengine.cpp b/src/socketengine.cpp index b7676e2c2..2fa152604 100644 --- a/src/socketengine.cpp +++ b/src/socketengine.cpp @@ -87,7 +87,7 @@ bool SocketEngine::AddFd(int fd, bool readable, char type) #ifdef USE_EPOLL struct epoll_event ev; log(DEBUG,"epoll: Add socket to events, ep=%d socket=%d",EngineHandle,fd); - readable ? ev.events = EPOLLIN | EPOLLET : ev.events = EPOLLOUT | EPOLLET; + readable ? ev.events = EPOLLIN : ev.events = EPOLLOUT; ev.data.fd = fd; int i = epoll_ctl(EngineHandle, EPOLL_CTL_ADD, fd, &ev); if (i < 0) @@ -138,7 +138,7 @@ bool SocketEngine::DelFd(int fd) #endif #ifdef USE_EPOLL struct epoll_event ev; - ref[fd] && X_READBIT ? ev.events = EPOLLIN | EPOLLET : ev.events = EPOLLOUT | EPOLLET; + ref[fd] && X_READBIT ? ev.events = EPOLLIN : ev.events = EPOLLOUT; ev.data.fd = fd; int i = epoll_ctl(EngineHandle, EPOLL_CTL_DEL, fd, &ev); if (i < 0) |