fix(launcher): forward SIGINT/SIGTERM signals to child process (#1145)
The Node.js launcher wrapper (bin/ocr.js) was not forwarding signals to the Go binary child process, causing orphaned processes when the parent received SIGINT or SIGTERM. Changes: - Replace spawnSync with spawn for asynchronous child process handling - Add signal handlers for SIGINT and SIGTERM that forward signals to child - Add error event handler for spawn failures (ENOENT, EACCES) - Properly propagate child exit status including signal-based termination - Add integration tests to verify signal forwarding behavior Fixes issue where Ctrl+C or kill commands left the Go process running after the Node.js wrapper exited. Resolves: #1142
超
超級の新人 committed
c590b6b606381fdf5dd0b90d06e24e12d3838ba8
Parent: 0a74720
Committed by GitHub <noreply@github.com>
on 9/7/2026, 6:19:25 AM