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

Ensure only one instance can run at a time #152

Merged
merged 5 commits into from
Oct 22, 2021

Conversation

IncPlusPlus
Copy link
Owner

@IncPlusPlus IncPlusPlus commented Oct 22, 2021

A mutex is created as early as possible during the program's startup. This is released upon closing (it is also abandoned if the process is killed), allowing a new instance to take its place if desired.

Writing to the log will fail if there's already an open instance. However, I wanted to make log configuration start early anyways so I'm sneaking that change in.
@IncPlusPlus IncPlusPlus merged commit f38f2a3 into main Oct 22, 2021
@IncPlusPlus IncPlusPlus deleted the improvement/prevent_multiple_instances branch October 22, 2021 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant