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

Initialize collectors after forking worker #64

Merged
merged 1 commit into from
Jul 26, 2024
Merged

Initialize collectors after forking worker #64

merged 1 commit into from
Jul 26, 2024

Conversation

jordap
Copy link
Collaborator

@jordap jordap commented Jul 26, 2024

Needed for collectors that use libraries that make allocations and need to read and write to preserve state.

We could make it so only collectors that need it are initialized after fork, but it shouldn't really make a difference in Omnistat because we only have 1 worker thread. It seems easier to simply initialize everything after the worker has been forked.

@jordap jordap requested a review from koomie July 26, 2024 17:28
@koomie koomie merged commit e6db6b9 into main Jul 26, 2024
4 checks passed
@jordap jordap deleted the jorda/post-fork branch July 26, 2024 23:35
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.

2 participants