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

Update Poll2 to use atomic locks #6

Open
1 task
spaulaus opened this issue Dec 4, 2018 · 0 comments
Open
1 task

Update Poll2 to use atomic locks #6

spaulaus opened this issue Dec 4, 2018 · 0 comments

Comments

@spaulaus
Copy link
Owner

spaulaus commented Dec 4, 2018

Expected Behavior

When the program crashes, the lock is released.

Current Behavior

If the program crashes and exits awkwardly then the lock will not be released.

Context

Users sometimes delete active lock files on a shared system. This causes a lot of issues when you try to connect to an active module. Related to spaulaus/paass-lc#179

Possible Solution (optional)

The lock should be atomic. This would mean that the lock would destroy itself if the associated process crashes. This would remove issues with locks from old processes blocking new processes that would not interfere. By removing this the users no longer delete lock files and thus reduces the possibility of one user deleting the lock as the other is actively using the process.

Acceptance Criteria

  • The lock is atomic, so that when the program crashes/exits, the lock is removed.
@spaulaus spaulaus transferred this issue from spaulaus/paass-lc Nov 21, 2020
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