From c4dffdedf72f6a2061e19725e4b50b2d28397085 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 12 Jan 2006 12:48:07 +0000 Subject: Test change to level-triggered epoll git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2779 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) -- cgit v1.2.3