version 1.6 | | version 1.7 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_loop_c = | | * static char *rcsid_loop_c = |
* "$Id: loop.c,v 1.6 2000/12/17 07:26:40 cvs Exp $"; | | * "$Id: loop.c,v 1.7 2000/12/18 07:38:26 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
for(i=0;i<socket_info.allocated_sockets;i++) { | | for(i=0;i<socket_info.allocated_sockets;i++) { |
if (init_sockets[i].status == Ns_Dead) { | | if (init_sockets[i].status == Ns_Dead) { |
int j; | | |
| | |
free_newsocket(&init_sockets[i]); | | free_newsocket(&init_sockets[i]); |
init_sockets[i].status = Ns_Avail; | | init_sockets[i].status = Ns_Avail; |
socket_info.nconns--; | | socket_info.nconns--; |
| | |
if (pollret) for(i=1;i<socket_info.allocated_sockets;i++) { | | if (pollret) for(i=1;i<socket_info.allocated_sockets;i++) { |
if (init_sockets[i].status == Ns_Avail) continue; | | if (init_sockets[i].status == Ns_Avail) continue; |
if (FD_ISSET(init_sockets[i].fd,&tmp_exceptions)) { | | if (FD_ISSET(init_sockets[i].fd,&tmp_exceptions)) { |
int j; | | |
| | |
free_newsocket(&init_sockets[i]); | | free_newsocket(&init_sockets[i]); |
init_sockets[i].status = Ns_Avail; | | init_sockets[i].status = Ns_Avail; |
socket_info.nconns--; | | socket_info.nconns--; |