Commit a723a21
committed
fix(infra): attach error listener to detached spawn to prevent unhandled rejection crash
spawnDetachedGatewayProcess calls child.unref() without attaching
an error listener. If spawn fails asynchronously (ENOMEM, missing
executable), the ChildProcess emits an unhandled 'error' event
that crashes the parent Node process.
Add a guard-checked noop error listener before unref() to prevent
the unhandled-event crash.
Fixes #1014581 parent 82b0f7c commit a723a21
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
| |||
0 commit comments