MCPcopy
hub / github.com/garrytan/gstack / verifyIdentity

Function verifyIdentity

design/src/daemon-state.ts:184–187  ·  view source on GitHub ↗
(pid: number, marker: string)

Source from the content-addressed store, hash-verified

182 * to skip the signal than to risk killing the wrong process.
183 */
184export function verifyIdentity(pid: number, marker: string): boolean {
185 if (!marker) return false;
186 return readCmdline(pid).includes(marker);
187}
188
189/**
190 * Acquire an exclusive lock on `lockPath`. Returns a release function, or

Callers 2

killByPidWithIdentityFunction · 0.90

Calls 1

readCmdlineFunction · 0.85

Tested by

no test coverage detected