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