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

Better cache lock #125

Closed
edsko opened this issue Dec 9, 2015 · 2 comments
Closed

Better cache lock #125

edsko opened this issue Dec 9, 2015 · 2 comments

Comments

@edsko
Copy link
Contributor

edsko commented Dec 9, 2015

Currently we create a directory hackage-security-lock in order to lock the cache; however, if the user interrupts the program (CTRL-C twice, for instance), we won't get a chance to remove this lock again and any subsequent attempts to check for updates will fail until the directory is manually removed.

A stop-gap measure would be to add a flag to ignore an existing lock, or ignore it automatically if the existing lock is older than a certain threshold; a proper solution would be to use some proper file locking but I don't know how to do that in a platform independent way.

@snoyberg
Copy link
Contributor

This should be fixed by #203, with the caveat of #205. In other words, I think #205 supersedes this issue.

@dcoutts
Copy link
Contributor

dcoutts commented Feb 14, 2018

Agreed. Ta.

@dcoutts dcoutts closed this as completed Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants