search for: fonctions_bibliothequ

Displaying 1 result from an estimated 1 matches for "fonctions_bibliothequ".

2007 Oct 29
0
Need a cross-platform lockfile algorithm
...access. No doubt each of those combinations has many variations. I only need advisory locking, not mandatory locking; a lockfile convention would be fine. I'm hoping that something like the algorithm used by liblockfile could be used (see man lockfile_create, e.g. http://pwet.fr/man/linux/fonctions_bibliotheques/lockfile_create). Basically it creates a file with a unique name, links it to the <filename>.lock file, and uses stat() to see if its link got there before any other contender. This is designed to be NFS-safe but I don't know if it would be possible or safe in an SMB or CIFS envir...