()
| 482 | export async function stopSidecar(child: ChildProcess): Promise<void> { |
| 483 | expectedExits.add(child); |
| 484 | const cleanupManifest = () => { |
| 485 | if (!child.pid) return; |
| 486 | const dataDir = sidecarManifestPathByPid.get(child.pid); |
| 487 | if (!dataDir) return; |
| 488 | removeManifestIfOwnedBy(dataDir, child.pid); |
| 489 | sidecarManifestPathByPid.delete(child.pid); |
| 490 | }; |
| 491 | if (child.exitCode !== null || child.killed) { |
| 492 | cleanupManifest(); |
| 493 | return; |
no test coverage detected