/[svn]/ircd-hybrid/branches/8.2.x/src/s_bsd_poll.c
ViewVC logotype

Diff of /ircd-hybrid/branches/8.2.x/src/s_bsd_poll.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8900 by michael, Tue Jan 1 11:06:50 2019 UTC revision 8901 by michael, Sun Apr 21 20:10:44 2019 UTC
# Line 92  comm_setselect(fde_t *F, unsigned int ty Line 92  comm_setselect(fde_t *F, unsigned int ty
92    
93    if (timeout)    if (timeout)
94    {    {
95      F->timeout = CurrentTime + (timeout / 1000);      F->timeout = event_base->time.sec_monotonic + (timeout / 1000);
96      F->timeout_handler = handler;      F->timeout_handler = handler;
97      F->timeout_data = client_data;      F->timeout_data = client_data;
98    }    }
# Line 154  comm_select(void) Line 154  comm_select(void)
154    
155    num = poll(pollfds, pollnum, SELECT_DELAY);    num = poll(pollfds, pollnum, SELECT_DELAY);
156    
157    set_time();    event_time_set();
158    
159    if (num < 0)    if (num < 0)
160    {    {

Legend:
Removed from v.8900  
changed lines
  Added in v.8901

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28