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

Windows are supported or not? #1

Open
cznic opened this issue Sep 5, 2013 · 3 comments
Open

Windows are supported or not? #1

cznic opened this issue Sep 5, 2013 · 3 comments

Comments

@cznic
Copy link

cznic commented Sep 5, 2013

After I've discovered 0, I'm writing a small tool for auditing a kv file. The plugable "lock" functionality adopted by kv earlier effectively forces to use the same locking as Camlistore uses. Otherwise the DB can be locked by Camlistore, but can appear unlocked to the tool if it doesn't use the same or compatible locking mechanism.

The docs1 say: "On Linux and OSX, a lock has the same semantics..." and later "Lock is not yet implemented on other operating systems, and calling it will return an error.".

Even though windows are not mentioned anywhere, I think they are supported, but I want to be sure. Can you please clarify this and/or fix the docs?

If you prefer me to do a pull request changing only the docs, please let me know.

@tgulacsi
Copy link

tgulacsi commented Dec 4, 2013

Issued pull request for windows support - hope this will be usable.

@Cergoo
Copy link

Cergoo commented Oct 9, 2014

What are the problems, for whatever reason at all file locking is not implemented in the standard library?

@tgulacsi
Copy link

tgulacsi commented Oct 9, 2014

Easy: it is not easy, and esp. on POSIX, it is only advisory (your lock is effective only for the same locking mechanism - see https://en.wikipedia.org/wiki/File_locking).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants