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

zloop: ensure zsys_init() when creating zloop #2286

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

oko256
Copy link
Contributor

@oko256 oko256 commented Apr 19, 2024

If no sockets or actors are used in zloop, zsys_init() does not get run and zsys interrupt handler does not get initialized. This means that interrupts will not work correctly in zloop if, for example, only timers are used. zsys_init() is safe to call multiple times, so we ensure that it's called when new zloop instance is created.

If no sockets or actors are used in zloop, `zsys_init()` does not get
run and zsys interrupt handler does not get initialized. This means that
interrupts will not work correctly in zloop if, for example, only timers
are used. `zsys_init()` is safe to call multiple times, so we ensure
that it's called when new zloop instance is created.
@sphaero sphaero merged commit e6f0a0f into zeromq:master Apr 23, 2024
9 of 11 checks passed
@sphaero
Copy link
Contributor

sphaero commented Apr 23, 2024

thnx!

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