Login
Immutable PageDiscussionInfoAttachments
Diff for "ytoku/daily-record/2011-01-12"

MMA
Differences between revisions 1 and 2
Revision 1 as of 2011-01-12 18:18:00
Size: 1006
Editor: ytoku
Comment:
Revision 2 as of 2011-01-12 18:46:08
Size: 1876
Editor: ytoku
Comment:
Deletions are marked like this. Additions are marked like this.
Line 27: Line 27:

/usr/ports/x11/xdm/files/patch-zankiに次のファイルを置いて{{{#!highlight diff
--- dm.h 2011-01-12 18:30:40.000000000 +0900
+++ dm.h 2011-01-12 18:31:21.000000000 +0900
@@ -249,8 +249,8 @@
 #ifdef XDMCP

 #define PROTO_TIMEOUT (30 * 60) /* 30 minutes should be long enough */
-#define XDM_BROKEN_INTERVAL (120) /* server crashing more than once within */
- /* two minutes is assumed to be broken! */
+#define XDM_BROKEN_INTERVAL (8) /* server crashing more than once within */
+ /* eight seconds is assumed to be broken!*/
 struct protoDisplay {
        struct protoDisplay *next;
        XdmcpNetaddr address; /* UDP address */
}}}
{{{#!highlight sh
[ytoku@termimage64 /usr/ports/x11/xdm]$ sudo make deinstall install clean
}}}

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)