cvs commit: src/usr.bin Makefile src/usr.bin/shlock Makefile shlock.c
Joerg Sonnenberger
joerg at britannica.bec.de
Sat Jul 23 13:15:15 PDT 2005
On Sat, Jul 23, 2005 at 12:58:25PM -0700, Matthew Dillon wrote:
>
> :joerg 2005/07/23 12:47:15 PDT
> :
> :DragonFly src repository
> :
> : Modified files:
> : usr.bin Makefile
> : Added files:
> : usr.bin/shlock Makefile shlock.c
> : Log:
> : Add shlock(1), a program for the safe creation of lock files from shell
> : scripts. It's uses the same algorithm as implemented by Erik Fair, but
> : is easier to read and more stricter in checking for error conditions.
>
> We need the manual page for it. Note also that we have a similar
> program called 'lockf' which already provides script level locks.
lockf and shlock differ fundamentally. The former doesn't handle
abnormal termination very well or does allow being called from a shell
script to acquire the lock file. "shlock -f lockfile -p $$" is how it is
typically called and it removes stale lock files automatically.
About the man page, see my other mail :-)
Joerg
More information about the Commits
mailing list