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

Op lock_fh has different sematics on windows and *nix #308

Open
retupmoca opened this issue Dec 6, 2015 · 0 comments
Open

Op lock_fh has different sematics on windows and *nix #308

retupmoca opened this issue Dec 6, 2015 · 0 comments

Comments

@retupmoca
Copy link
Contributor

lock_fh uses fcntl on *nix systems, which is reentrant in the sense that if a process tries to lock a file it has already locked, the lock is a no-op (and a call to 'unlock' (or closing a file) will remove all locks the current process holds on a file)

On Windows sytems, lock_fh uses LockFileEx, which will block if the same process attempts to lock a file twice.

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

1 participant