[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KIOSlave::put
From: Laurence Anderson <l.d.anderson () warwick ! ac ! uk>
Date: 2002-07-31 18:21:44
[Download RAW message or body]
After further investigation it seems that while files are being copied in
(using the put method) something (maybe KDirListerCache) really wants to
update its directory list so a new slave is created after a while (normally
after a few mkdir()'s have happened), the fist method to be called being
listDir. This is possible as maxInstances is only a 'soft' limit. However
then, I suppose as this second slave is now free, it starts creating
directories, then files.
I have created a dummy IOSlave, that just shows an empty directory, and has
a dummy mkdir and put method which do nothing. After copying in a large
directory (arts CVS directory), 2 slaves were created both having their put
methods called. However if I call exit() at the end of the listDir method
if the slaves put method has never been called, the second slave terminates
just after listing the directory, and is never re-created, so only one
slave's put method is called, which is what I want. How can I do this
without having exit() at the end of my listDir method? (which is a nasty
hack)
Any ideas?
Laurence
> I'm modifying a slave to peform writing, and have encountered a problem.
> When a directory (containing files & subdirectories) is dragged into
> konqueror viewing a url provided by the slave, the files start to copy
> across ok, then another instance of the slave seems to be created, which
> also starts writing files, (even though maxInstances=1 in the .protocol
> file), so the both tred on each others feet etc.
>
> kdebase/kioslave/DEBUG.howto says that "If 'klauncher' does not have an
> idle slave ready, it will ask kdeinit to start a new one." How can I stop
> this?
>
> How can I stop another instance being launched, or am I doing something
> wrong somewhere?
>
> Thanks,
>
> Laurence
>
>>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
>>> unsubscribe <<
>> 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