Export to GitHub

pylockfile - issue #7

SymlinkFileLock


Posted on Sep 4, 2010 by Helpful Horse

Lockfile class for using (dangling) symlinks for locking. Patch attached. (More testing would be preferred, though).

Initial problem for me was that hardlinks didn't work well over sshfs.

Side note: pylockfile code could likely use some redesign — a bit of formatting, some better expressions (although not very sure about pre-2.6 compatibility on those), and more abstract version of acquire() which uses own classmethods and doesn't have to be copied in all classes.

Attachments

Comment #1

Posted on Nov 6, 2010 by Grumpy Lion

Thanks. Added as rev 112. Will be in v. 0.9.2.

Comment #2

Posted on Nov 6, 2010 by Grumpy Lion

(No comment was entered for this change.)

Comment #3

Posted on Nov 6, 2010 by Grumpy Lion

Sorry, still trying to figure out how this issue tracker works.

Status: Fixed

Labels:
Type-Defect Priority-Medium