locklock is an attempt at creating a shell script based locking mechanism for any file. | |
Download |
lock Ranking & Summary
Advertisement
- License:
- GPL
- Price:
- FREE
- Publisher Name:
- Martin Fick
- Publisher web site:
- http://www.theficks.name/Hacks/HomePage
lock Tags
lock Description
lock is an attempt at creating a shell script based locking mechanism for any file. lock is an attempt at creating a shell script based locking mechanism for any file. This mechanism attempts to deal safely with the case of abandoned locks by first locking the abandoned lock and then deleting it (recursively if needed).Developer commentsI believe I have eliminated race conditions and would be curious if anyone could prove me wrong.A simple locking mechanism:Provide a PID and a file to lock on. If the process with the PID exits, it will abandon any locks it holds.lock PID fileunlock file
lock Related Software