![]() Registered Member ![]()
|
Hi all,
I'm developing a kioslave, and I was thinking that a single instance of a slave is created each time a user enters an URL that responds /i.e., is registered for) such slave. In my case I've got that the protocol file contains:
and the kdemain entry method for the slave has the following:
The problem, or better, my doubt, is that if I launch the url rolefs:/// from the klauncher (ALT+F2) and I look at the ~/.xsession-errors I can see the following entries:
so it seems that there are six calls to the kdemain method, and therefore six slaves running. This can produce problems with re-entrancy, and that is why I'd like to better understand what is happening and who is actually doing the six kdemain entry calls. |
![]() Administrator ![]()
|
Each KIO Slave instance is started as a seperate process, which protects against re-entrancy.
Slaves are launched by KLauncher as needed.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
And is it possible to make intra-slave communication? For instance, if the user launches two slaves on the same URL and then works only on one of them, how can the other get updates too?
|
![]() Administrator ![]()
|
As far as I am aware the exact mechanics of how it operates are handled by KIO itself. It will ensure it doesn't make too many repetitive requests, etc. If you need further information on this, I would recommend contacting kde-devel@kde.org where people more knowledgable about KIO can answer information specific to it's internals.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft