X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/67669f0032b27d9c434bc91b1cf5b199e9077fd2..a0e7e5f516fa0317007b6267bf55d8fa535ad2f2:/ae_epoll.c diff --git a/ae_epoll.c b/ae_epoll.c index ce9ce3b0..d48977b6 100644 --- a/ae_epoll.c +++ b/ae_epoll.c @@ -1,5 +1,5 @@ /* Linux epoll(2) based ae.c module - * Copyright (C) 2009 Salvatore Sanfilippo - antirez@gmail.com + * Copyright (C) 2009-2010 Salvatore Sanfilippo - antirez@gmail.com * Released under the BSD license. See the COPYING file for more info. */ #include @@ -38,7 +38,6 @@ static int aeApiAddEvent(aeEventLoop *eventLoop, int fd, int mask) { mask |= eventLoop->events[fd].mask; /* Merge old events */ if (mask & AE_READABLE) ee.events |= EPOLLIN; if (mask & AE_WRITABLE) ee.events |= EPOLLOUT; - if (mask & AE_EXCEPTION) ee.events |= EPOLLPRI; ee.data.u64 = 0; /* avoid valgrind warning */ ee.data.fd = fd; if (epoll_ctl(state->epfd,op,fd,&ee) == -1) return -1; @@ -53,7 +52,6 @@ static void aeApiDelEvent(aeEventLoop *eventLoop, int fd, int delmask) { ee.events = 0; if (mask & AE_READABLE) ee.events |= EPOLLIN; if (mask & AE_WRITABLE) ee.events |= EPOLLOUT; - if (mask & AE_EXCEPTION) ee.events |= EPOLLPRI; ee.data.u64 = 0; /* avoid valgrind warning */ ee.data.fd = fd; if (mask != AE_NONE) { @@ -81,7 +79,6 @@ static int aeApiPoll(aeEventLoop *eventLoop, struct timeval *tvp) { if (e->events & EPOLLIN) mask |= AE_READABLE; if (e->events & EPOLLOUT) mask |= AE_WRITABLE; - if (e->events & EPOLLPRI) mask |= AE_EXCEPTION; eventLoop->fired[j].fd = e->data.fd; eventLoop->fired[j].mask = mask; }