Hacker News new | ask | show | jobs
by remram 1360 days ago
I also found that advisory locking has a lot of gotchas, especially when used in multithread contexts (apparently you can lose the lock because a different thread closed a different file descriptor on the same file).