Difference for socket/loop.c from version 1.16 to 1.17


version 1.16 version 1.17
Line 1
 
Line 1
   
 /*  /*
  * 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 $";
  */   */
   
 /*  /*
Line 365
 
Line 365
 }  }
 #endif  #endif
   
   extern unsigned long todtick;
   
 static void block_until_new_connection()  static void block_until_new_connection()
 {  {
   
Line 374
 
Line 376
   
     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);


Legend:
line(s) removed in v.1.16 
line(s) changed
 line(s) added in v.1.17

File made using version 1.98 of cvs2html by leaf at 2011-07-21 19:36