richfitz / seagull

:bird: Portable file locking
https://richfitz.github.io/seagull
Other
2 stars 2 forks source link

Global set of lockfiles #3

Open richfitz opened 8 years ago

richfitz commented 8 years ago

Don't allow two acquisitions of a lockfile to break things. So pull handles from an environment in the package so that if this happens the file is never opened twice.

Probably needs a reference counter set so that when nothing else holds a handle the handle can be closed?