/[svn]/ircd-hybrid/branches/8.1.x/src/s_bsd_kqueue.c
ViewVC logotype

Diff of /ircd-hybrid/branches/8.1.x/src/s_bsd_kqueue.c

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

revision 2648 by michael, Mon Dec 2 18:20:39 2013 UTC revision 2649 by michael, Tue Dec 10 19:46:34 2013 UTC
# Line 117  comm_setselect(fde_t *F, unsigned int ty Line 117  comm_setselect(fde_t *F, unsigned int ty
117    }    }
118    
119    new_events = (F->read_handler ? COMM_SELECT_READ : 0) |    new_events = (F->read_handler ? COMM_SELECT_READ : 0) |
120     (F->write_handler ? COMM_SELECT_WRITE : 0);                 (F->write_handler ? COMM_SELECT_WRITE : 0);
121    
122    if (timeout != 0)    if (timeout != 0)
123      F->timeout = CurrentTime + (timeout / 1000);      F->timeout = CurrentTime + (timeout / 1000);
# Line 178  comm_select(void) Line 178  comm_select(void)
178        continue;        continue;
179    
180      if (ke[i].filter == EVFILT_READ)      if (ke[i].filter == EVFILT_READ)
181        {
182        if ((hdl = F->read_handler) != NULL)        if ((hdl = F->read_handler) != NULL)
183        {        {
184          F->read_handler = NULL;          F->read_handler = NULL;
# Line 185  comm_select(void) Line 186  comm_select(void)
186          if (!F->flags.open)          if (!F->flags.open)
187            continue;            continue;
188        }        }
189        }
190    
191      if (ke[i].filter == EVFILT_WRITE)      if (ke[i].filter == EVFILT_WRITE)
192        {
193        if ((hdl = F->write_handler) != NULL)        if ((hdl = F->write_handler) != NULL)
194        {        {
195          F->write_handler = NULL;          F->write_handler = NULL;
# Line 194  comm_select(void) Line 197  comm_select(void)
197          if (!F->flags.open)          if (!F->flags.open)
198            continue;            continue;
199        }        }
200        }
201    
202      comm_setselect(F, 0, NULL, NULL, 0);      comm_setselect(F, 0, NULL, NULL, 0);
203    }    }

Legend:
Removed from v.2648  
changed lines
  Added in v.2649

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