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

Attempt to remove stale config file locks #79

Merged
merged 1 commit into from
Aug 20, 2014

Conversation

special
Copy link
Member

@special special commented Aug 16, 2014

QLockFile checks whether a process with the PID in the lock file exists,
and assumes the lock is held if one does. In many cases that can result
in false-positive "locked" errors, especially after unexpected reboots.

It's very bad if we tell users that their configuration is in use when
it isn't. To avoid this, try removing stale lock files automatically. On
most systems, if the lock is truly held, the removal will fail and we
can safely display the error.

It's possible that this could allow users on networked filesystems to
launch multiple instances, but that is less of a bug than the existing
one.

Fixes #73

QLockFile checks whether a process with the PID in the lock file exists,
and assumes the lock is held if one does. In many cases that can result
in false-positive "locked" errors, especially after unexpected reboots.

It's very bad if we tell users that their configuration is in use when
it isn't. To avoid this, try removing stale lock files automatically. On
most systems, if the lock is truly held, the removal will fail and we
can safely display the error.

It's possible that this could allow users on networked filesystems to
launch multiple instances, but that is less of a bug than the existing
one.

Fixes ricochet-im#73
@rburchell
Copy link
Contributor

Ok

special added a commit that referenced this pull request Aug 20, 2014
Attempt to remove stale config file locks
@special special merged commit a8a887d into ricochet-im:master Aug 20, 2014
@special special deleted the 73-config-in-use branch August 20, 2014 23:01
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.

"Configuration is already in use" sometimes appears after unexpected exit
2 participants