The code for the svc_run routine with the select subroutine is as follows:
void svc_run() { fd_set readfds; int dtbsz = getdtablesize();
for (;;) { readfds = svc_fds; switch (select(dtbsz, &readfds, NULL,NULL,NULL)) {
case -1: if (errno == EINTR) continue; perror("select"); return; case 0: break; default: svc_getreqset(&readfds); } } }