TIP: Click on subject to list as thread! ANSI
echo: sync_programming
to: Git commit to main/sbbs/m
from: Rob Swindell (on Debian L
date: 2024-11-17 17:34:00
subject: src/sbbs3/ftpsrvr.c main.

https://gitlab.synchro.net/main/sbbs/-/commit/b7bd03313a6f8156f03c69a0
Modified Files:
	src/sbbs3/ftpsrvr.c main.cpp nopen.c nopen.h
Log Message:
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.
--- SBBSecho 3.22-Linux
                                            
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.