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

List:       kde-devel
Subject:    Re: Lost and Confused
From:       Waldo Bastian <bastian () kde ! org>
Date:       2003-07-06 15:00:34
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 06 July 2003 12:57, Tim Jansen wrote:
> On Sunday 06 July 2003 08:54, Ryan Bean wrote:
> > is KApplication, and my process is KProcess.  My application is a
> > Q_OBJECT and a K_DCOP, is reigistered on DCOP, and send packets of
> > QByteArrays over the DCOP registry.  My methods for sending and receiving
> > packets through this methods work like a charm, but how can I know when
> > the child is complete.
>
> - Let the child send a notification to the parent process when it is ready,
> or 
> - Send the data to the child's stdin, or write it to a file etc.., or 
> -  Let the parent wait for the child by checking every second whether the
> child has registered itself

Or temporary listen for DCOP registration events so that you get a signal when 
your child has registrated itself. See DCOPClient::applicationRegistered and 
DCOPClient::setNotifications.

Make sure to start listening before forking, to avoid race conditions.

Cheers,
Waldo
- -- 
bastian@kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian@suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/CDmSN4pvrENfboIRApWXAJ9FXuE//08hI7pyAt5yBc77zm+SCACeLtZw
+8kze5lL0KkKJ/sHhnZQudA=
=iQnM
-----END PGP SIGNATURE-----
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

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

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