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
- Host: GitHub
- URL: https://github.com/jaysoffian/dotlock
- Owner: jaysoffian
- Created: 2010-12-13T16:21:49.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2014-02-12T22:07:51.000Z (over 11 years ago)
- Last Synced: 2024-04-22T00:19:13.338Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 103 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
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.