Skip to content

Function to exit the program without a panic? #3559

Discussion options

You must be logged in to vote

The case I had in mind was a server which is expected to be running until an exit is called for, at which point it should finish outstanding I/O and close itself.

Then you want init.stop, not erlang.halt

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@lpil
Comment options

lpil Aug 25, 2024
Maintainer

@tryoxiss
Comment options

@lpil
Comment options

lpil Aug 26, 2024
Maintainer

Answer selected by tryoxiss
@tryoxiss
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants