= xdmが残機設定2な件について = xdm/dm.c{{{#!highlight c { Time_t Time; time(&Time); Debug("time %i %i\n",Time,d->lastCrash); if (d->lastCrash && ((Time - d->lastCrash) < XDM_BROKEN_INTERVAL)) { Debug("Server crash frequency too high:" " removing display %s\n",d->name); LogError("Server crash rate too high:" " removing display %s\n",d->name); #if !defined(ARC4_RANDOM) && !defined(DEV_RANDOM) AddTimerEntropy(); #endif RemoveDisplay (d); } else d->lastCrash = Time; } }}} xdm/dm.h{{{#!highlight c #define XDM_BROKEN_INTERVAL (120) /* server crashing more than once within */ /* two minutes is assumed to be broken! */ }}} あー /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 }}}