We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
headius
Learn more about funding links in repositories.
Report abuse
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
File.flock defaults to a LOCK_NB lock which is different than MRI which blocks if you call flock with LOCK_EX. Test case:
https://gist.github.com/4527948
It should block forever on the second call.
The text was updated successfully, but these errors were encountered:
It only defaults to a LOCK_NB if the process already holds a lock.
Sorry, something went wrong.
Works as expected for me (blocks forever) on jruby 1.7.13 / OSX 10.9.4
Tested this on JRuby 9k, and the blocking behavior is consistent with MRI
No branches or pull requests
File.flock defaults to a LOCK_NB lock which is different than MRI which blocks if you call flock with LOCK_EX. Test case:
https://gist.github.com/4527948
It should block forever on the second call.
The text was updated successfully, but these errors were encountered: