lock 2.2

lock is an attempt at creating a shell script based locking mechanism for any file.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
GPL (GNU General Public License) 
USER RATING:
2.3/5 14
DEVELOPED BY:
Martin Fick
HOMEPAGE:
www.theficks.name
CATEGORY:
ROOT \ Utilities
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 comments

I 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 file
unlock file

Last updated on April 16th, 2008

#abandoned locks #locking mechanism #lock files #locking #mechanism #PID #lock

Add your review!

SUBMIT