version 1.15 | | version 1.16 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_loop_c = | | * static char *rcsid_loop_c = |
* "$Id: loop.c,v 1.15 2001/08/29 15:45:22 reeve Exp $"; | | * "$Id: loop.c,v 1.16 2001/10/30 00:49:03 michtoen Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
cycles=0; | | cycles=0; |
} | | } |
FD_ZERO(&readfs); | | FD_ZERO(&readfs); |
FD_SET(init_sockets[0].fd, &readfs); | | FD_SET((uint32)init_sockets[0].fd, &readfs); |
Timeout.tv_sec=60; | | Timeout.tv_sec=60; |
Timeout.tv_usec=0; | | Timeout.tv_usec=0; |
#ifdef WATCHDOG | | #ifdef WATCHDOG |
| | |
init_sockets[i].status = Ns_Avail; | | init_sockets[i].status = Ns_Avail; |
socket_info.nconns--; | | socket_info.nconns--; |
} else if (init_sockets[i].status != Ns_Avail){ | | } else if (init_sockets[i].status != Ns_Avail){ |
FD_SET(init_sockets[i].fd, &tmp_read); | | FD_SET((uint32)init_sockets[i].fd, &tmp_read); |
FD_SET(init_sockets[i].fd, &tmp_write); | | FD_SET((uint32)init_sockets[i].fd, &tmp_write); |
FD_SET(init_sockets[i].fd, &tmp_exceptions); | | FD_SET((uint32)init_sockets[i].fd, &tmp_exceptions); |
} | | } |
} | | } |
| | |
| | |
pl=npl; | | pl=npl; |
} | | } |
else { | | else { |
FD_SET(pl->socket.fd, &tmp_read); | | FD_SET((uint32)pl->socket.fd, &tmp_read); |
FD_SET(pl->socket.fd, &tmp_write); | | FD_SET((uint32)pl->socket.fd, &tmp_write); |
FD_SET(pl->socket.fd, &tmp_exceptions); | | FD_SET((uint32)pl->socket.fd, &tmp_exceptions); |
pl=pl->next; | | pl=pl->next; |
} | | } |
} | | } |