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

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

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

revision 2648 by michael, Thu Apr 25 18:01:53 2013 UTC revision 2649 by michael, Tue Dec 10 19:46:34 2013 UTC
# Line 198  comm_select(void) Line 198  comm_select(void)
198        continue;        continue;
199    
200      if ((ep_fdlist[i].events & (EPOLLIN | EPOLLHUP | EPOLLERR)))      if ((ep_fdlist[i].events & (EPOLLIN | EPOLLHUP | EPOLLERR)))
201        {
202        if ((hdl = F->read_handler) != NULL)        if ((hdl = F->read_handler) != NULL)
203        {        {
204          F->read_handler = NULL;          F->read_handler = NULL;
205          hdl(F, F->read_data);          hdl(F, F->read_data);
206          if (!F->flags.open)          if (!F->flags.open)
207            continue;            continue;
208        }        }
209        }
210    
211      if ((ep_fdlist[i].events & (EPOLLOUT | EPOLLHUP | EPOLLERR)))      if ((ep_fdlist[i].events & (EPOLLOUT | EPOLLHUP | EPOLLERR)))
212        {
213        if ((hdl = F->write_handler) != NULL)        if ((hdl = F->write_handler) != NULL)
214        {        {
215          F->write_handler = NULL;          F->write_handler = NULL;
216          hdl(F, F->write_data);          hdl(F, F->write_data);
217          if (!F->flags.open)          if (!F->flags.open)
218            continue;            continue;
219        }        }
220        }
221    
222      comm_setselect(F, 0, NULL, NULL, 0);      comm_setselect(F, 0, NULL, NULL, 0);
223    }    }

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

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