Date: Wed, 12 Dec 2001 08:23:48 -0900 From: Beech Rintoul <akbeech@anchoragerescue.org> To: Mike D <d01f1n@yahoo.com>, questions@freebsd.org Subject: Re: kde (dcopserver) propblem Message-ID: <20011212172349.EE1BFB3@nebula.anchoragerescue.org> In-Reply-To: <20011212091346.SWRL2135.mta02-svc.ntlworld.com@there>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Wednesday 12 December 2001 12:13 am, Mike D wrote:
> the first 3/4 times I try to "startx" I get this (or something along these
> lines):
>
> There was an error setting up the inter-process communication for KDE
> could not read network connection list
> Please check that the "dcopserver" program is running
>
> Any suggestions why this may be happening? After 3/4 attempts, kde starts
> ok.
>
Try this patch, I got from KDE. Seems to cure the problem.
Beech
-------------------------------------------------------------------
Beech Rintoul - IT Manager - Instructor - akbeech@anchoragerescue.org
/"\ ASCII Ribbon Campaign | Anchorage Gospel Rescue Mission
\ / - NO HTML/RTF in e-mail | P.O. Box 230510
X - NO Word docs in e-mail | Anchorage, AK 99523-0510
/ \ -----------------------------------------------------------------
[-- Attachment #2 --]
Index: listen.c
===================================================================
-|RCS file: /usr/ports/x11/kdelibs2/work/kdelibs-2.2.1/dcop/KDE-ICE/listen.c,v
+|RCS file: /usr/ports/x11/kdelibs2/work/kdelibs-2.2.1/dcop/KDE-ICE/listen.c,v
retrieving revision 1.1retrieving revision 1.2
diff -u -3 -d -p -r1.1 -r1.2
--- listen.c 2001/03/10 06:00:07 1.1
+++ listen.c 2001/09/27 05:07:01 1.2
@@ -32,6 +32,7 @@ Author: Ralph Mor, X Consortium
#include "KDE-ICE/ICElibint.h"
#include "KDE-ICE/Xtrans.h"
#include <stdio.h>
+#include <time.h>
Status
@@ -46,12 +47,21 @@ char *errorStringRet;
struct _IceListenObj *listenObjs;
char *networkId;
int transCount, partial, i, j;
+ int result = -1;
+ int count = 0;
Status status = 1;
XtransConnInfo *transConns = NULL;
+ while ((result < 0) && (count < 5))
+ {
+ char buf[128];
+ sprintf(buf, "dcop%d-%d", getpid(), time(NULL)+count);
+ result = _KDE_IceTransMakeAllCOTSServerListeners (buf, &partial,
+ &transCount, &transConns);
+ count++;
+ }
- if ((_KDE_IceTransMakeAllCOTSServerListeners (NULL, &partial,
- &transCount, &transConns) < 0) || (transCount < 1))
+ if ((result < 0) || (transCount < 1))
{
*listenObjsRet = NULL;
*countRet = 0;
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011212172349.EE1BFB3>
