Handle graceful termination on SIGINT/SIGTERM signals #39

Closed
opened 2025-07-07 17:53:06 +00:00 by versus · 1 comment
Owner

Termination due to signals or os.Exit() calls don't necessarily trigger the defer chain. For a clean shutdown and graceful termination:

  1. handle relevant signals explicitly
  2. prefer return to os.Exit() calls in the handlers (or find a workaround)
Termination due to signals or `os.Exit()` calls don't necessarily trigger the defer chain. For a clean shutdown and graceful termination: 1. handle relevant signals explicitly 1. prefer `return` to `os.Exit()` calls in the handlers (or find a workaround)
versus added this to the Road to 0.1.0 milestone 2025-07-07 17:53:06 +00:00
versus added this to the Tasks project 2025-07-07 17:53:06 +00:00
versus modified the milestone from Road to 0.1.0 to v0.2.0 2025-09-19 10:01:33 +00:00
Author
Owner

Address it in #86

Address it in #86
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jammella/gancio.notification#39
No description provided.