summaryrefslogtreecommitdiff
path: root/src/socketengine.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-12 12:48:07 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-12 12:48:07 +0000
commitc4dffdedf72f6a2061e19725e4b50b2d28397085 (patch)
tree36b05594c8d276b8c9315076ad797823b7b17262 /src/socketengine.cpp
parent8b22f9f8b7b5737fe2f9046e5c8219200b9bd1be (diff)
Test change to level-triggered epoll
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2779 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengine.cpp')
-rw-r--r--src/socketengine.cpp4
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)