MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / cleanupManifest

Function cleanupManifest

apps/desktop/src/main/sidecar.ts:484–490  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

482export 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;

Callers 1

stopSidecarFunction · 0.85

Calls 3

removeManifestIfOwnedByFunction · 0.85
getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected