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

Function getUid

packages/cli/src/utils/orphanCleanup.ts:117–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115let _cachedUid: string | null | undefined;
116
117function getUid(): string | null {
118 if (_cachedUid !== undefined) return _cachedUid;
119 try {
120 _cachedUid = execSync("id -u", { encoding: "utf-8", timeout: 1000 }).trim();
121 } catch {
122 _cachedUid = null;
123 }
124 return _cachedUid;
125}
126
127function isOrphan(pid: number): boolean {
128 try {

Callers 1

killOrphansByNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected