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

Function cleanupManifest

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

Source from the content-addressed store, hash-verified

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

Callers 1

stopSidecarFunction · 0.85

Calls 3

removeManifestIfOwnedByFunction · 0.85
getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected