ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/s_bsd_devpoll.c
(Generate patch)

Comparing ircd-hybrid-7.2/src/s_bsd_devpoll.c (file contents):
Revision 281 by adx, Sun Nov 6 11:20:44 2005 UTC vs.
Revision 282 by adx, Thu Nov 24 10:31:22 2005 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)