[patch] KLockFile -- try harder

Ralf Habacker ralf.habacker at freenet.de
Thu Jan 29 09:36:38 GMT 2009


Nick Shaforostoff schrieb:
>> i think you forgot to add the autotests. :D
>>     
> Attached. All tests are passing.
>
> And btw, on windows OpenProcess should be used as kill(PID,0)
> substitute. Can't test and hence implement this though.
>   
On windows there is no need to check the pid because KLockFile does not 
save pid's into the lockfile. If a file is locked by a process, 
KLockFile detects this case on file open - if the lockfile could be 
openend the process who created the lockfile has been died and the 
lockfile could be reused - see the comments in klockfile_win.cpp

Regards
 Ralf








More information about the kde-core-devel mailing list