|
LOCKMETHODSyntax
DescriptionLOCKMETHOD determines how MHonArc should lock archives to protect multiple MHonArc processes modifying an archive at the same time. If after reading this page you still are unsure on what method to use, or do not understand some of the material, then just stick with the default value. The following is a list of possible values for LOCKMETHOD:
The following sub-sections give more information of each lock method, including the pros and cons of each, and assumes you have some knowledge about file systems. Directory File MethodThe directory file method is the default method used by MHonArc, and is the method used by past version of MHonArc. If you are familiar with locking methods used by other software, you may find it strange that a directory (which is just a special kind of file) is used instead of a plain file. The reason a directory is used is that it has unique properties over regular files on the various operating systems MHonArc runs on. The property that MHonArc takes advantage of is that you cannot create a new directory over an existing directory of the same name. This property is not guaranteed for plain files, or at least Perl cannot give a common interface for plain files to work on all platforms. It may be possible to use a plain file with Perl's sysopen() operator with the proper options, but the needed sysopen() options are not guaranteed to be available for all ports of Perl. Pros
Cons
flock MethodUsing flock() is a common method for locking files under Unix-type operating systems. In order to use flock() method, the Symbol and Fcntl Perl modules must be available. If not available, and this method is specified, MHonArc will fallback to the directory file method. Unlike the directory method, it is okay if LOCKFILE stays around, and actually, it should never be manual deleted. Pros
Cons
Default Settingdirectory
Resource VariablesN/A ExamplesNone. Version2.4.0 See AlsoFORCE, LOCK, LOCKDELAY, LOCKFILE, LOCKTRIES
$Date: 2002/07/27 05:13:10 $ MHonArc Copyright © 1999, Earl Hood, mhonarc@mhonarc.org |