summaryrefslogtreecommitdiff
path: root/src/devpoll.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:03:45 +0900
committerMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:03:45 +0900
commit0e167c86051614f9d9d9fab255aae8272b1b056b (patch)
tree4b1184b3937804a4cdfaad5552085c94e3fa813e /src/devpoll.cpp
parentff12aabf4b2ec48339235ad67175575d2b00adc0 (diff)
File descriptor passed to in_event and out_event
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/devpoll.cpp')
-rw-r--r--src/devpoll.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devpoll.cpp b/src/devpoll.cpp
index 12b22ce..da56a7f 100644
--- a/src/devpoll.cpp
+++ b/src/devpoll.cpp
@@ -169,15 +169,15 @@ void xs::devpoll_t::loop ()
if (!fd_ptr->valid || !fd_ptr->accepted)
continue;
if (ev_buf [i].revents & (POLLERR | POLLHUP))
- fd_ptr->reactor->in_event ();
+ fd_ptr->reactor->in_event (ev_buf [i].fd);
if (!fd_ptr->valid || !fd_ptr->accepted)
continue;
if (ev_buf [i].revents & POLLOUT)
- fd_ptr->reactor->out_event ();
+ fd_ptr->reactor->out_event (ev_buf [i].fd);
if (!fd_ptr->valid || !fd_ptr->accepted)
continue;
if (ev_buf [i].revents & POLLIN)
- fd_ptr->reactor->in_event ();
+ fd_ptr->reactor->in_event (ev_buf [i].fd);
}
}
}