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

Have fmutex_open()/close() accept a fmutex_t* argument

This is needed for *nix where normal (i.e. not Samba-mount) file behavior
requires that we manually unlink() the file, but not until just before closing
it. So we have to keep track of the file name and the 'auto_remove' desire of
the caller. This is not necessary when the file is on a Linux-smbfs, but we
need to work as expected on normal/local *nix file systems too.

This solves atomic lock file removal for *nix, but does not gaurantee lock file
cleanup upon ungraceful process termination (e.g. crash). At least in this
particular case, Windows beats UNIX.
parent dbf5e775
No related branches found
No related tags found
No related merge requests found
Pipeline #7182 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment