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); |
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; |
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; |