./pkgtools/shlock, Shell utility to perform dot-locking

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 20080529, Package name: shlock-20080529, Maintainer: pkgsrc-users

The shlock command can create or verify a lock file on behalf of a
shell or other script program. When it attempts to create a lock
file, if one already exists, shlock verifies that it is or is not
valid. If valid, shlock will exit with a non-zero exit code. If
invalid, shlock will re- move the lock file, and create a new one.

shlock uses the rename(2) system call to make the final target lock
file, which is an atomic operation (i.e. "dot locking", so named for
this mech- anism's original use for locking system mailboxes). It
puts the process ID ("PID") from the command line into the requested
lock file.

shlock verifies that an extant lock file is still valid by using
kill(2) with a zero signal to check for the existence of the process
that holds the lock.


Required to build:
[pkgtools/cwrappers]

Version history: (Expand)


CVS history: (Expand)


   2014-03-03 03:38:11 by OBATA Akio | Files touched by this commit (1)
Log message:
Just define PKGNAME.
   2013-09-12 13:15:12 by Jonathan Perkin | Files touched by this commit (11)
Log message:
Add USE_TOOLS+=nroff to packages which generate catman pages.
   2013-07-20 23:50:55 by Thomas Klausner | Files touched by this commit (44)
Log message:
Use Mt for email addresses.
   2012-09-12 01:19:40 by Aleksej Saushev | Files touched by this commit (60)
Log message:
"user-destdir" is default these days
   2012-04-23 05:41:28 by Matthew Sporleder | Files touched by this commit (3)
Log message:
build for with CATMAN after talking with joerg
   2012-04-22 17:17:29 by Matthew Sporleder | Files touched by this commit (2)
Log message:
add cat1 to build files to handle manpage/fix build
   2009-04-09 02:48:18 by Joerg Sonnenberger | Files touched by this commit (109)
Log message:
Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions.
   2008-05-30 12:02:38 by Tobias Nygren | Files touched by this commit (1)
Log message:
Don't set NOMAN for SunOS.