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

Fix race condition in ReloadConfig #760

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ajmaidak
Copy link

Calling ReloadConfig was not thread safe in spite of the mutex. One thread could overwrite the package level cfg pointer after it was mutated by another thread.

@SuperQ
Copy link
Member

SuperQ commented Aug 13, 2023

This needs a DCO sign-off. You can use git commit -s --amend to add it.

Calling ReloadConfig was not thread safe in spite of mutex.  One thread
could overwrite the package level cfg pointer after it was mutated by
another thread.

Signed-off-by: Alexander J. Maidak <ajmaidak@gmail.com>
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.

None yet

2 participants