Christopher Lemmer Webber is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Christopher Lemmer Webber @cwebber

> the unix philosophy is about composing small orthogonal features in flexible ways, like lockf and flock and fcntl(F_SETLK) and fcntl(F_OFD_SETLCK) and "mandatory locking" but only if present in the kernel and the fs is mounted with "-o mand" or MS_MANDLOCK and SGID is set but not

-- From @wingo@twitter.com (aka @wingo) twitter.com/andywingo/status/9

· Web · 3 · 11

@cwebber @wingo and I believe that is the right way. How many times on Windows haven't you been stuck with a file or directory that you can't rename or remove because it's locked by some unknown competent?

Also that's the reason you have to reboot Windows so many times when doing upgrades.

@cwebber @wingo
file locks is widely considered one of the weakest part of POSIX

Also mandatory locking can easly DoS an OS,see Windows