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

Function cleanupManifest

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

Source from the content-addressed store, hash-verified

470export async function stopSidecar(child: ChildProcess): Promise<void> {
471 expectedExits.add(child);
472 const cleanupManifest = () => {
473 if (!child.pid) return;
474 const dataDir = sidecarManifestPathByPid.get(child.pid);
475 if (!dataDir) return;
476 removeManifestIfOwnedBy(dataDir, child.pid);
477 sidecarManifestPathByPid.delete(child.pid);
478 };
479 if (child.exitCode !== null || child.killed) {
480 cleanupManifest();
481 return;

Callers 1

stopSidecarFunction · 0.85

Calls 3

removeManifestIfOwnedByFunction · 0.85
getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected