I thought locking data files was always frowned upon. Some
OSes mutilate
files when locking them or something (I think it tends to set its size
to zero). Or at least I've heard that it's always better to use a
separate, zero-length files as a lock.
This is from the Berkeley DB documentation regarding the "fd" function:
This file descriptor may be safely used as an argument to the
fcntl(2) and flock(2) locking functions. The file descriptor is
not necessarily associated with any of the underlying files actually
used by the access method.
Seems like several people here have done things with File::Lock or
LockFile or whatever.
Migrated from rt.perl.org#1378 (status was 'resolved')
Searchable as RT1378$
The text was updated successfully, but these errors were encountered: