Skip to content

Comments

fix(signal): remove call to os.Exit to ensure app cleanups are run#21

Merged
arikkfir merged 1 commit intomainfrom
arikkfir/remove-call-to-os-exit
Jul 13, 2024
Merged

fix(signal): remove call to os.Exit to ensure app cleanups are run#21
arikkfir merged 1 commit intomainfrom
arikkfir/remove-call-to-os-exit

Conversation

@arikkfir
Copy link
Owner

This change removes the call to os.Exit on a 2nd OS signal, to ensure that the application's cleanups - most often represented as defer calls - are properly called (since calls to os.Exit prevent defer functions execution.)

This change removes the call to `os.Exit` on a 2nd OS signal, to ensure
that the application's cleanups - most often represented as `defer`
calls - are properly called (since calls to `os.Exit` prevent `defer`
functions execution.)
@arikkfir arikkfir added the bug Something isn't working label Jul 13, 2024
@arikkfir arikkfir self-assigned this Jul 13, 2024
@arikkfir arikkfir merged commit 2c16379 into main Jul 13, 2024
@arikkfir arikkfir deleted the arikkfir/remove-call-to-os-exit branch July 13, 2024 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant