News for hackers. Stuff that matters.
Re:“POSIX advisory locks are broken by design” by iforgotpassword on Wednesday July 25, 2018 @02:59AM (#17607361)
That design might be for portability, since pread() and pwrite() ought to be thread safe, so one global FD per file for your multi threaded app should be enough, at least on Linux and freebsd. It does however not help if some other part of your application "accidentally" opens that file too (some lib for example).

There are no comments on this comment yet.