Login
Immutable PageDiscussionInfoAttachments

Revision 1 as of 2011-01-12 18:18:00

Clear message
ytoku/daily-record/2011-01-12

MMA

xdmが残機設定2な件について

xdm/dm.c

   1                 {
   2                   Time_t Time;
   3                   time(&Time);
   4                   Debug("time %i %i\n",Time,d->lastCrash);
   5                   if (d->lastCrash &&
   6                       ((Time - d->lastCrash) < XDM_BROKEN_INTERVAL)) {
   7                     Debug("Server crash frequency too high:"
   8                           " removing display %s\n",d->name);
   9                     LogError("Server crash rate too high:"
  10                              " removing display %s\n",d->name);
  11 #if !defined(ARC4_RANDOM) && !defined(DEV_RANDOM)
  12                     AddTimerEntropy();
  13 #endif
  14                     RemoveDisplay (d);
  15                   } else
  16                     d->lastCrash = Time;
  17                 }

xdm/dm.h

   1 #define XDM_BROKEN_INTERVAL (120)   /* server crashing more than once within */
   2                                     /* two minutes is assumed to be broken!  */

あー