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

Implement account-level file locking #429

Merged
merged 9 commits into from
May 25, 2024
Merged

Implement account-level file locking #429

merged 9 commits into from
May 25, 2024

Conversation

tmpfs
Copy link
Collaborator

@tmpfs tmpfs commented May 25, 2024

Closes #394.

tmpfs added 5 commits May 25, 2024 12:23
Locks a local account exclusively on sign in and drops the lock on sign
out.
So that callers can be notified when a sign in would block due to an
existing account file lock.
So that the GUI can respond appropriately when the account is locked.

Using the notification channel in the GUI would be overkill so it's
easier to match on the error and handle it that way.
@tmpfs tmpfs self-assigned this May 25, 2024
tmpfs added 4 commits May 25, 2024 15:36
Tidy unused origin field.
Otherwise we hit a bug trying to re-acquire locks where re-acquiring a
lock would be granted when it should be locked by another process.
@tmpfs tmpfs merged commit fafb8d7 into main May 25, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

Implement account-level file lock
1 participant