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

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

Merged
merged 1 commit into from
Jul 13, 2024

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
4 checks passed
@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