()
| 736 | } |
| 737 | |
| 738 | const terminateCloneProcess = () => { |
| 739 | if (child.killed || child.exitCode !== null || child.signalCode !== null) { |
| 740 | return; |
| 741 | } |
| 742 | |
| 743 | if (typeof child.pid === "number" && child.pid > 0) { |
| 744 | killProcessTree(child.pid); |
| 745 | return; |
| 746 | } |
| 747 | |
| 748 | try { |
| 749 | child.kill(); |
| 750 | } catch { |
| 751 | // Ignore ESRCH races if process exits between checks. |
| 752 | } |
| 753 | }; |
| 754 | |
| 755 | const onAbort = () => { |
| 756 | terminateCloneProcess(); |
nothing calls this directly
no test coverage detected