MCPcopy
hub / github.com/callstack/agent-device / clearPidFile

Function clearPidFile

src/daemon/app-log-process.ts:89–96  ·  view source on GitHub ↗
(pidPath: string | undefined)

Source from the content-addressed store, hash-verified

87}
88
89export function clearPidFile(pidPath: string | undefined): void {
90 if (!pidPath || !fs.existsSync(pidPath)) return;
91 try {
92 fs.unlinkSync(pidPath);
93 } catch {
94 // best-effort cleanup
95 }
96}
97
98export function cleanupStaleAppLogProcesses(sessionsDir: string): void {
99 if (!fs.existsSync(sessionsDir)) return;

Callers 3

startAndroidAppLogFunction · 0.90
startAppleAppLogStreamFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected