- yaz_log(man->log_level, "max=%d sel_fd=%d", max, man->sel_fd);
-
- if (man->sel_fd != -1) {
- if (man->sel_fd > max)
- max = man->sel_fd;
- FD_SET(man->sel_fd, &in);
- }
- yaz_log(man->log_level, "select begin nofds=%d", max);
- res = select(max + 1, &in, &out, &except, timeout);
- yaz_log(man->log_level, "select returned res=%d", res);
- if (res < 0) {
+ yaz_log(man->log_level, "yaz_poll begin nofds=%d", no_fds);
+ res = yaz_poll(fds, no_fds, to.tv_sec, 0);
+ yaz_log(man->log_level, "yaz_poll returned res=%d", res);
+ if (res < 0)
+ {