Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flock(2) vs lockf(3)/fcntl(2) #134

Open
Hamcha opened this issue Nov 27, 2014 · 0 comments
Open

flock(2) vs lockf(3)/fcntl(2) #134

Hamcha opened this issue Nov 27, 2014 · 0 comments
Labels

Comments

@Hamcha
Copy link
Member

Hamcha commented Nov 27, 2014

Solaris lacks flock(2), and it seems lockf(3)/fcntl(2) is better anyway for more reasons (can lock over NFS and things like that, not that we really care).

This is an interesting (and long) man 2.0 page (aka StackOverflow answer) on the matter:
http://stackoverflow.com/questions/22409780/flock-vs-lockf-on-linux

Dunno about support on all the OSs, though, our current targets (FreeBSD, Linux, Solaris) all support it. OS X seems to like fcntl(2) more as well, and Windows.. well it's not like that thing supports either.

@qpfiffer qpfiffer added the bug label Nov 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants