Login
Immutable PageDiscussionInfoAttachments
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!  */

あー

/usr/ports/x11/xdm/files/patch-zankiに次のファイルを置いて

   1 --- dm.h        2011-01-12 18:30:40.000000000 +0900
   2 +++ dm.h        2011-01-12 18:31:21.000000000 +0900
   3 @@ -249,8 +249,8 @@
   4  #ifdef XDMCP
   5 
   6  #define PROTO_TIMEOUT  (30 * 60)   /* 30 minutes should be long enough */
   7 -#define XDM_BROKEN_INTERVAL (120)   /* server crashing more than once within */
   8 -                                    /* two minutes is assumed to be broken!  */
   9 +#define XDM_BROKEN_INTERVAL (8)     /* server crashing more than once within */
  10 +                                    /* eight seconds is assumed to be broken!*/
  11  struct protoDisplay {
  12         struct protoDisplay     *next;
  13         XdmcpNetaddr            address;   /* UDP address */

   1 [ytoku@termimage64 /usr/ports/x11/xdm]$ sudo make deinstall install clean

ytoku/daily-record/2011-01-12 (last edited 2011-01-12 18:46:08 by ytoku)