version 1.16 | | version 1.17 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_loop_c = | | * static char *rcsid_loop_c = |
* "$Id: loop.c,v 1.16 2001/10/30 00:49:03 michtoen Exp $"; | | * "$Id: loop.c,v 1.17 2001/12/18 08:58:03 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} | | } |
#endif | | #endif |
| | |
| | extern unsigned long todtick; |
| | |
static void block_until_new_connection() | | static void block_until_new_connection() |
{ | | { |
| | |
| | |
| | |
LOG(llevInfo, "Waiting for connections...\n"); | | LOG(llevInfo, "Waiting for connections...\n"); |
| | |
cycles=0; | | cycles=1; |
do { | | do { |
/* Every minutes is a bit often for updates - especially if nothing is going | | /* Every minutes is a bit often for updates - especially if nothing is going |
* on. This slows it down to every 5 minutes. | | * on. This slows it down to every 6 minutes. |
*/ | | */ |
if (cycles++ == 5) { | | cycles++; |
| | if (cycles%2 == 0) |
| | tick_the_clock(); |
| | if (cycles == 7) { |
metaserver_update(); | | metaserver_update(); |
cycles=0; | | cycles=1; |
} | | } |
FD_ZERO(&readfs); | | FD_ZERO(&readfs); |
FD_SET((uint32)init_sockets[0].fd, &readfs); | | FD_SET((uint32)init_sockets[0].fd, &readfs); |