Repository navigation
Use :erlang.exit_signal/2 in Process.exit/2 - #16027
Merged
Merged
Conversation
:erlang.exit/2 is deprecated in upcoming Erlang/OTP versions. exit_signal/2 has been available since Erlang/OTP 21 and differs only when the calling process signals itself: :normal no longer terminates it and other reasons are delivered asynchronously. Assisted-by: Claude Code:claude-opus-5-5
Assisted-by: Claude Code:claude-opus-5-5
Assisted-by: Claude Code:claude-opus-5-5
Assisted-by: Claude Code:claude-opus-5-5
Assisted-by: Claude Code:claude-opus-5-5
Assisted-by: Claude Code:claude-opus-5-5
Assisted-by: Claude Code:claude-opus-5-5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
:erlang.exit/2is deprecated on Erlang/OTP master, which breaks the OTP master CI job with--warnings-as-errors(Process.exit/2is inlined to it).:erlang.exit_signal/2has existed since Erlang/OTP 21 (documented since 29) and shares the same implementation, except when the calling process signals itself:Process.exit(self(), :normal)no longer terminates the caller and other reasons are delivered asynchronously.exit/1should be used to terminate the calling process instead.Kernel.CLIwaits for the exit signal it sends itself on--rpc-evalfailures, preserving the previous behaviourAssisted-by: Claude Code:claude-opus-5-5