An open API service indexing awesome lists of open source software.

https://github.com/jaysoffian/dotlock

Unix dot-locking examples
https://github.com/jaysoffian/dotlock

Last synced: 6 months ago
JSON representation

Unix dot-locking examples

Awesome Lists containing this project

README

        

dotlock.py - example python script which uses dot-locking.

lock.sh - shell script example which uses dot-locking.
Can be used as a wrapper to invoke another program atomically.

Both of these are safe over NFS, and should be safe over SMB.

Also see lockfile, part of the procmail package and setlock,
part of djb's daemontools package.

See http://apenwarr.ca/log/?m=201012#13 for an excellent
writeup of the standard Unix locking APIs.