sd.4 (2011 03)
s
sd(4) sd(4)
LOCKING
These commands use a common locking mechanism for reading and modifying both root directories and
software depots. This mechanism allows multiple readers but only one writer on a root or depot.
The commands which modify software in an (alternate) root directory are restricted from simultaneous
modification using
fcntl() locking on the file
var/adm/sw/products/swlock
relative to the root directory (for example,
/var/adm/sw/products/swlock
).
The commands which modify software in a depot are restricted from simultaneous modification using
fcntl() locking on the file
catalog/swlock
relative to the depot directory (for example,
/var/spool/sw/catalog/swlock
).
All commands set
fcntl() read locks on roots and depots using the
swlock file mentioned above.
When a read lock is set, it prevents other commands from performing modifications (that is, from setting
write locks).
The
swacl command is restricted from simultaneous modification of an ACL using
fcntl() read and
write locks on the
_LOCK_FILE
associated with each ACL.
AUTHOR
Software Distributor was developed by the Hewlett-Packard Company.
swagent, swcopy, swin-
stall, swlist, and swpackage were developed by the Hewlett-Packard Company and Mark H. Col-
burn (see pax(1)).
SEE ALSO
swacl(1M), swagentd(1M), swask(1M), swconfig(1M), swcopy(1M), swinstall(1M), swjob(1M), swlist(1M),
swmodify(1M), swpackage(1M), swreg(1M), swremove(1M), swverify(1M), swpackage(4), sd(5).
Software Distributor Administration Guide , available at
http://www.hp.com/go/sd-docs.
HP-UX 11i Version 3: March 2011 − 25 − Hewlett-Packard Company 25