Skip to content
Snippets Groups Projects
Commit dbf5e775 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Revert "Use fmutex_open for 100% locking and auto-removal upon close/termination"

This reverts commit e55183c0.

fmutex_open()'s auto-remove feature doesn't work on normal/local Linux file
systems: unlink() of a file immediately removes its directory entry allowing
subsequent opens of the same file name, defeating the lock.

I had tested fmutex_open() on a Samba mount (from Linux) and it worked as I
wanted (like the Windows version does). Still searching for a good solution:
if a process terminates, gracefully or not, I'd like the file to be removed
at that time and until then, other processes or threads can't create or open
the same lock file (using O_EXCL and file locking to insure this).
parent 33096050
Branches
Tags
No related merge requests found
Pipeline #7181 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment