MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / signalDaemonPid

Function signalDaemonPid

src/cli/daemon-control.ts:56–67  ·  view source on GitHub ↗
(pid: number, signal: NodeJS.Signals)

Source from the content-addressed store, hash-verified

54}
55
56function signalDaemonPid(pid: number, signal: NodeJS.Signals): boolean {
57 try {
58 process.kill(pid, signal);
59 return true;
60 } catch (error) {
61 if ((error as NodeJS.ErrnoException).code === 'ESRCH') {
62 return false;
63 }
64 const message = error instanceof Error ? error.message : String(error);
65 throw new Error(`Failed to send ${signal} to daemon PID ${pid}: ${message}`);
66 }
67}
68
69/**
70 * Get the path to the daemon executable.

Callers 1

forceStopDaemonFunction · 0.85

Calls 1

killMethod · 0.65

Tested by

no test coverage detected