Commit 942123c
authored
fix: misc signal cleanup (#51)
- Fix test msg
- Remove proc 'exit' handler during interrupt
This code was a no-op as spawn.js does not emit `exit` events.
This is actually good, because were it to be working, it would
result in a race condition when a child exits non-zero:
1. The lifecycle promise would be rejected, leading to log output
and a possible pnpm exit
2. This hook would force node to exit 0 immediately.
- Fix the listener removals when child exits.1 parent 06ddfa6 commit 942123c
2 files changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
322 | 321 | | |
| 322 | + | |
| 323 | + | |
323 | 324 | | |
324 | 325 | | |
325 | 326 | | |
| |||
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | 334 | | |
337 | 335 | | |
338 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
0 commit comments