An open API service indexing awesome lists of open source software.

https://github.com/cdown/mkdirmutex

A deadlock-resistant mkdir based mutex
https://github.com/cdown/mkdirmutex

Last synced: over 1 year ago
JSON representation

A deadlock-resistant mkdir based mutex

Awesome Lists containing this project

README

          

Since it came up a couple of times now, here's a good example of how to safely
implement a mkdir-based mutex lock in userspace without dependencies.

This is generally a lot less of a footgun than using flock(1), which has
significant problems with (for example) FD inheritance and unintuitive
deadlocks.