2 ms·
Making sure it's not already open by someone else is definitely part of "used properly".
by Dylan16807 4y ago
Making sure it's not already open by someone else is definitely part of "used properly".
- SulphurCrested 4y agoHow do I do that? fstat(2) is no help on macOS, and even if it were would return false positives from things like backup and content indexers ("Time Machine" and "Spotlight" on macOS).
- Dylan16807 4y agoYou need to control the lifecycle of the file in some manner. Or force a reboot, I guess?