Changeset 19 for trunk/src/sh_forward.c


Ignore:
Timestamp:
Feb 12, 2006, 10:49:56 PM (19 years ago)
Author:
rainer
Message:

Rewrite of test suite, checksum for growing logs, fix for minor bug with dead client detection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_forward.c

    r12 r19  
    49954995          }
    49964996       
    4997         if (sig_suspend_switch == 1)  /* SIGUSR2 */
     4997        if (sig_suspend_switch > 0)  /* SIGUSR2 */
    49984998          {
    49994999            TPT((0, FIL__, __LINE__, _("msg=<Suspend switch.>\n")));
     
    50055005              sh_global_suspend_flag = 1;
    50065006            }
    5007             sig_suspend_switch = 0;
     5007            --sig_suspend_switch;
    50085008            --sig_raised; --sig_urgent;
    50095009          }
     
    51715171      tcurrent = (unsigned long) time (NULL);
    51725172
     5173      /* check for time limit exceeded
     5174       */
     5175      if ((tcurrent - tchkold) > (unsigned int) 3 )
     5176        {
     5177          tchkold = tcurrent;
     5178          client_time_check(/* all_clients */);
     5179        }
     5180     
     5181      /* seed / re-seed the PRNG if required
     5182       */
     5183      (void) taus_seed();
     5184
    51735185      /* select() timeout handling.
    51745186       */
     
    52465258            }
    52475259        }
    5248 
    5249       /* check for time limit exceeded
    5250        */
    5251       if ((tcurrent - tchkold) > (unsigned int) 3 )
    5252         {
    5253           tchkold = tcurrent;
    5254           client_time_check(/* all_clients */);
    5255         }
    5256       tcurrent = tcurrent;
    5257      
    5258       /* seed / re-seed the PRNG if required
    5259        */
    5260       (void) taus_seed();
    5261      
     5260      /* continue */
    52625261    }
    52635262  /* notreached */
Note: See TracChangeset for help on using the changeset viewer.