Home | History | Annotate | Download | only in mtpd

Lines Matching refs:pollfds

156     struct pollfd pollfds[3];
184 pollfds[0].fd = the_socket;
185 pollfds[0].events = POLLIN;
186 pollfds[1].fd = signals[0];
187 pollfds[1].events = POLLIN;
188 pollfds[2].fd = control;
189 pollfds[2].events = 0;
192 if (poll(pollfds, 3, timeout ? timeout : -1) == -1 && errno != EINTR) {
196 if (pollfds[1].revents) {
199 if (pollfds[2].revents) {
202 timeout = pollfds[0].revents ?