… | … | ||
---|---|---|---|
199 | to = &tval; | 199 | to = &tval; |
200 | } | 200 | } |
201 | #endif | 201 | #endif |
202 | 202 | ||
203 | #if IOM_IO | 203 | #if IOM_IO |
204 | fd_set rfd, wfd, efd; | 204 | fd_set rfd, wfd; |
205 | 205 | ||
206 | FD_ZERO (&rfd); | 206 | FD_ZERO (&rfd); |
207 | FD_ZERO (&wfd); | 207 | FD_ZERO (&wfd); |
208 | 208 | ||
209 | int fds = 0; | 209 | int fds = 0; |
… | … | ||
218 | } | 218 | } |
219 | 219 | ||
220 | if (!to && !fds) //TODO: also check idle_watchers and check_watchers | 220 | if (!to && !fds) //TODO: also check idle_watchers and check_watchers |
221 | break; // no events | 221 | break; // no events |
222 | 222 | ||
223 | fds = select (fds, &rfd, &wfd, &efd, to); | 223 | fds = select (fds, &rfd, &wfd, NULL, to); |
224 | # if IOM_TIME | 224 | # if IOM_TIME |
225 | set_now (); | 225 | set_now (); |
226 | # endif | 226 | # endif |
227 | 227 | ||
228 | if (fds > 0) | 228 | if (fds > 0) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |