diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:03:45 +0900 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:03:45 +0900 |
commit | 0e167c86051614f9d9d9fab255aae8272b1b056b (patch) | |
tree | 4b1184b3937804a4cdfaad5552085c94e3fa813e /src/epoll.cpp | |
parent | ff12aabf4b2ec48339235ad67175575d2b00adc0 (diff) |
File descriptor passed to in_event and out_event
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/epoll.cpp')
-rw-r--r-- | src/epoll.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/epoll.cpp b/src/epoll.cpp index 3902282..354ccc4 100644 --- a/src/epoll.cpp +++ b/src/epoll.cpp @@ -150,15 +150,15 @@ void xs::epoll_t::loop () if (pe->fd == retired_fd) continue; if (ev_buf [i].events & (EPOLLERR | EPOLLHUP)) - pe->events->in_event (); + pe->events->in_event (pe->fd); if (pe->fd == retired_fd) continue; if (ev_buf [i].events & EPOLLOUT) - pe->events->out_event (); + pe->events->out_event (pe->fd); if (pe->fd == retired_fd) continue; if (ev_buf [i].events & EPOLLIN) - pe->events->in_event (); + pe->events->in_event (pe->fd); } // Destroy retired event sources. |