dcop/iceauth msvc fix

Peter Kümmel syntheticpp at gmx.net
Thu Feb 23 00:01:46 CET 2006


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)
> 




More information about the Kde-buildsystem mailing list