/[svn]/ircd-hybrid-7.2/src/s_bsd_devpoll.c
ViewVC logotype

Diff of /ircd-hybrid-7.2/src/s_bsd_devpoll.c

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

revision 281 by adx, Sun Nov 6 11:20:44 2005 UTC revision 282 by adx, Thu Nov 24 10:31:22 2005 UTC
# Line 109  comm_setselect(fde_t *F, unsigned int ty Line 109  comm_setselect(fde_t *F, unsigned int ty
109      F->write_data = client_data;      F->write_data = client_data;
110    }    }
111    
112    new_events = (F->read_handler ? POLLRDNORM : 0) |    new_events = (F->read_handler ? POLLIN : 0) |
113      (F->write_handler ? POLLWRNORM : 0);      (F->write_handler ? POLLOUT : 0);
114    
115    if (timeout != 0)    if (timeout != 0)
116      F->timeout = CurrentTime + (timeout / 1000);      F->timeout = CurrentTime + (timeout / 1000);
# Line 161  comm_select(void) Line 161  comm_select(void)
161      if (F == NULL || !F->flags.open)      if (F == NULL || !F->flags.open)
162        continue;        continue;
163    
164      if ((dopoll.dp_fds[i].revents & (POLLRDNORM | POLLIN | POLLHUP | POLLERR)))      if ((dopoll.dp_fds[i].revents & POLLIN))
165        if ((hdl = F->read_handler) != NULL)        if ((hdl = F->read_handler) != NULL)
166        {        {
167          F->read_handler = NULL;          F->read_handler = NULL;
# Line 170  comm_select(void) Line 170  comm_select(void)
170            continue;            continue;
171        }        }
172    
173      if ((dopoll.dp_fds[i].revents & (POLLWRNORM | POLLOUT | POLLHUP | POLLERR)))      if ((dopoll.dp_fds[i].revents & POLLOUT))
174        if ((hdl = F->write_handler) != NULL)        if ((hdl = F->write_handler) != NULL)
175        {        {
176          F->write_handler = NULL;          F->write_handler = NULL;

Legend:
Removed from v.281  
changed lines
  Added in v.282

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