-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
File.downgradeLock
says it's atomic, but uses flock
which is not atomic
#9836
Comments
Welp I think you found the cause of #9439 |
Is there an idea of where this is in the priority queue and when this may be looked at? Unfortunately we've had to disable Zig CC in our CI environment as around 80% of all builds were failing because of this. 😔 |
|
I'm still interested in addressing this issue but it's a slightly lower priority since it didn't turn out to be the cause of #9439 after all. In fact, I suspect that some OS's actually do make changing lock types with |
Maybe downgrading. If upgrading was atomic, deadlocks would happen when two processes want to upgrade. |
File.downgradeLock
says:From
flock(2)
Linux man page:downgradeLock
is used insrc/Cache.zig
.The text was updated successfully, but these errors were encountered: