Stuart Brorson wrote:

Lockfiles are necessary because people will (hopefully) use gschem and
gattrib together to manage their schematics. They may indeed run them
simultaneously in two separate windows.

very possible.

The lockfiles will be based on the name of each opened .sch file.
Example:  schematic_1.sch.lock.  There will be one lock file per
opened .sch file.  If you are editing a multi-page design, then you
will have multiple lock files.  The lockfiles will live in the same
directory as the associated .sch files.


# user who locked this file
user=sdb
# process number of program creating this lock
pid=345345

You also should record the machine name it was done on. Checking a pid is not a lot of use if I have windows open to several of my hosts.


You could use gconf to manage all this - but I would keep it portable.

john


Stuart



Reply via email to