Repository navigation
Commit c8b2f4f
committed
child_process: release the abort listener when a spawn fails
A failed spawn emits 'error' and 'close' but never 'exit'. The
AbortSignal cleanup in spawn() was registered on 'exit', so the abort
listener stayed attached to the user's signal after a failed spawn.
Register the cleanup on 'close' as well, matching the timeout cleanup.
Signed-off-by: Abdel <hktitof@gmail.com>1 parent a232998 commit c8b2f4f
2 files changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
919 | 919 | | |
920 | 920 | | |
921 | 921 | | |
| 922 | + | |
| 923 | + | |
922 | 924 | | |
| 925 | + | |
923 | 926 | | |
924 | 927 | | |
925 | 928 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| |||
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
0 commit comments