[GH-ISSUE #147] fix(main): remove shutdown handlers when run lifecycle completes #94

Closed
opened 2026-10-15 18:21:05 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @morluto on GitHub (Jul 14, 2026).
Original GitHub issue: https://github.com/morluto/rea/issues/147

Description

src/main.ts registers one-shot shutdown handlers for SIGINT/SIGTERM/stdin-end but does not provide unregistration. Re-running the process lifecycle in one process may accumulate stale handlers.

Impact

Repeated invocations can cause duplicated shutdown handling behavior and harder-to-reason lifecycle semantics.

Expected behavior

Add a symmetric unregister/cleanup path for the registered handlers.

Files

  • src/main.ts (around lines 45-49, 248)
Originally created by @morluto on GitHub (Jul 14, 2026). Original GitHub issue: https://github.com/morluto/rea/issues/147 ## Description `src/main.ts` registers one-shot shutdown handlers for SIGINT/SIGTERM/stdin-end but does not provide unregistration. Re-running the process lifecycle in one process may accumulate stale handlers. ## Impact Repeated invocations can cause duplicated shutdown handling behavior and harder-to-reason lifecycle semantics. ## Expected behavior Add a symmetric unregister/cleanup path for the registered handlers. ## Files - `src/main.ts` (around lines 45-49, 248)
bsakaguchi 2026-10-15 18:21:05 +00:00
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
morluto/rea#94
No description provided.