()
| 447 | export async function stopSidecar(child: ChildProcess): Promise<void> { |
| 448 | expectedExits.add(child); |
| 449 | const cleanupManifest = () => { |
| 450 | if (!child.pid) return; |
| 451 | const dataDir = sidecarManifestPathByPid.get(child.pid); |
| 452 | if (!dataDir) return; |
| 453 | removeManifestIfOwnedBy(dataDir, child.pid); |
| 454 | sidecarManifestPathByPid.delete(child.pid); |
| 455 | }; |
| 456 | if (child.exitCode !== null || child.killed) { |
| 457 | cleanupManifest(); |
| 458 | return; |
no test coverage detected