rea/.github
Sravan Avvaru 911152a04d
fix(cli): complete cleanup after relayed interrupts (#1202)
* fix: Handle relayed SIGINT gracefully in withProcessCancellation

Changes `process.once` to `process.on` for SIGINT in `DirectAnalysis.ts`.
When REA is launched via npx, a single process-group SIGINT triggers two
SIGINT events (one direct, one relayed). Previously, the first event would
consume the handler and the second would abruptly terminate the Node process,
abandoning Ghidra resource cleanup.

This change ensures subsequent SIGINTs idempotently request cancellation
without crashing the process, matching the behaviour of `withCommandCancellation`.

* fix(cli): keep termination guards through provider cleanup

* test(cli): exercise repeated analysis signals on macOS

---------

Co-authored-by: N0zoM1z0 <1705004398@qq.com>
2026-10-09 12:45:23 +08:00
..
ISSUE_TEMPLATE docs: improve GitHub issue and pull request templates 2026-08-29 10:11:21 +08:00
workflows fix(cli): complete cleanup after relayed interrupts (#1202) 2026-10-09 12:45:23 +08:00
pull_request_template.md docs: clarify contribution scope and cosmetic suggestions 2026-10-09 07:28:47 +08:00