Skip Menu |
Report information
Id: 1378
Status: resolved
Priority: 0/
Queue: perl5

Owner: Nobody
Requestors: Steve

Operating System: (no value)
PatchStatus: (no value)
Severity: low
Type: docs
Perl Version: (no value)
Fixed In: (no value)

From: Steve Fink [mailto:sfink [...]]
Download (untitled) / with headers
text/plain 692b
Show quoted text
> 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. Show quoted text
> Seems like several people here have done things with File::Lock or > LockFile or whatever.
Like what? Paul

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at