summaryrefslogtreecommitdiff
path: root/src/s_bsd_devpoll.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/s_bsd_devpoll.c')
-rw-r--r--src/s_bsd_devpoll.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/s_bsd_devpoll.c b/src/s_bsd_devpoll.c
index 4bc5aaa..866b9b3 100644
--- a/src/s_bsd_devpoll.c
+++ b/src/s_bsd_devpoll.c
@@ -114,7 +114,11 @@ comm_setselect(fde_t *F, unsigned int type, PF *handler,
(F->write_handler ? POLLOUT : 0);
if (timeout != 0)
+ {
F->timeout = CurrentTime + (timeout / 1000);
+ F->timeout_handler = handler;
+ F->timeout_data = client_data;
+ }
if (new_events != F->evcache)
{