Commit 1486a08
fix(npm): use spawn with signal handling for graceful shutdown
Replace execFileSync with spawn and add proper signal handling for
SIGTERM, SIGINT, and SIGHUP. This ensures the child process is properly
terminated when the wrapper receives a signal and returns correct exit
codes based on the termination signal.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent f3f7085 commit 1486a08
1 file changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
0 commit comments