MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / isOrphan

Function isOrphan

packages/cli/src/utils/orphanCleanup.ts:127–137  ·  view source on GitHub ↗
(pid: number)

Source from the content-addressed store, hash-verified

125}
126
127function isOrphan(pid: number): boolean {
128 try {
129 const ppid = execSync(`ps -p ${pid} -o ppid=`, {
130 encoding: "utf-8",
131 timeout: 2000,
132 }).trim();
133 return ppid === "1";
134 } catch {
135 return false;
136 }
137}

Callers 1

killOrphansByNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected