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

Update on_load handling during boot #6817

Merged

Conversation

RaimoNiskanen
Copy link
Contributor

Introduce a transient worker that is started by kernel:init and that only calls init:run_on_load_handlers(), which will run all so far postponed (after code load) on_load handlers. The worker exits immediately after that.

This on_load worker is run after code_server and standard_error, which should provide enough fundamentals for the on_load handlers themselves.

The need for explicitly calling on_load handlers from e.g user_drv and the SSL distribution inet_tls_dist should vanish.

Therefore init:run_on_load_handlers/1 should be removed, but to avoid bootstrap problems that can wait to a later commit.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2023

CT Test Results

No tests were run for this PR. This is either because the build failed, or the PR is based on a branch without GH actions tests configured.

Results for commit 73249a8

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

Introduce a transient worker that is started by kernel:init
and that only calls init:run_on_load_handlers(), which will
run all so far postponed (after code load) on_load handlers.
The worker exits immediately after that.

This on_load worker is run after code_server and standard_error,
which should provide enough fundamentals for the on_load handlers
themselves.

The need for explicitly calling on_load handlers from e.g user_drv
and the SSL distribution inet_tls_dist should vanish.

Therefore init:run_on_load_handlers/1 should be removed, but
to avoid bootstrap problems that can wait to a later commit.
@RaimoNiskanen
Copy link
Contributor Author

RaimoNiskanen commented Feb 8, 2023

I added commits that remove init:run_on_load_handlers/1

@RaimoNiskanen RaimoNiskanen merged commit f0a1792 into erlang:master Feb 9, 2023
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

1 participant