[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-buildsystem
Subject:    dcop/iceauth msvc fix
From:       syntheticpp () gmx ! net (=?ISO-8859-1?Q?Peter_K=FCmmel?=)
Date:       2006-02-22 23:01:46
Message-ID: 43FCED5A.9070402 () gmx ! net
[Download RAW message or body]

Michael Dr?ing wrote:
> Hi,
> 
>> Your patch works fine. :)
> 
> glad to hear that :)
> 
>> And when commenting out the mentioned line in dcopserver.cpp
>> (which is only a hack) it could connect to the server when
>> creating a KApplication.
> 
> which line do you mean, exactly? I tried commenting out various lines which

Hi Michael,

here by "brute force" solution:


$ svn diff dcop/dcopserver.cpp
Index: dcop/dcopserver.cpp
===================================================================
--- dcop/dcopserver.cpp (Revision 512547)
+++ dcop/dcopserver.cpp (Arbeitskopie)
@@ -1074,8 +1074,8 @@
        connect( con, SIGNAL( activated(int) ), this, SLOT( newClient(int) ) );
     }
     char c = 0;
-    write(ready[1], &c, 1); // dcopserver is started
-    close(ready[1]);
+    //write(ready[1], &c, 1); // dcopserver is started
+    //close(ready[1]);

     m_timer =  new QTimer(this);
     connect( m_timer, SIGNAL(timeout()), this, SLOT(slotTerminate()) );

cuser at cname /cygdrive/c/sandbox/kdelibs/kdelibs



> all had to do with the ready[] pipe, especially I tried closing them only
> once, or not closing them at all, which all didn't work as expected. I must
> admit that I didn't fully understand DCOPserver (I'm rather new to KDE
> programming, at least at this low level)
> 



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic