← Back to team overview

kicad-developers team mailing list archive

General suckitude of wx lock files

 

Got tired of all the lockfiles in the home directory, tried to look at
the issue. Sadly is (almost) everything in wxWidgets.

It doesn't even catch SIGTERM so a shutdown or ^C or whatever else don't
cleanup them.

Solution: ripped out the lockfile logic from my branch :P

Question: do we really need them? IIRC they were only for coordinating
the eeschema/pcbnew IPC (and it's a confirmation only). Data files are
only read/written in a single go, not kept open as a db. Since locks are
in the home it doesn't even guard over NFS (or other file sharing
mechanism). The worst? You overwrite modification you did in another
instance. We could eventually warn for this comparing filestamps (vim
does it that way).

Now I'm working happier:D did I miss some fatal flaw?

-- 
Lorenzo Marcantonio
Logos Srl


Follow ups