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

Function detachProcessHandlers

src/server/mcp-lifecycle.ts:389–404  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

387 },
388
389 detachProcessHandlers(): void {
390 if (!handlersAttached) {
391 return;
392 }
393 handlersAttached = false;
394
395 processRef.removeListener('SIGTERM', handleSigterm);
396 processRef.removeListener('SIGINT', handleSigint);
397 processRef.stdin.removeListener('end', handleStdinEnd);
398 processRef.stdin.removeListener('close', handleStdinClose);
399 processRef.stdout?.removeListener('error', handleStdoutError);
400 processRef.stderr?.removeListener('error', handleStderrError);
401 processRef.removeListener('uncaughtException', handleUncaughtException);
402 processRef.removeListener('unhandledRejection', handleUnhandledRejection);
403 processRef.removeListener('exit', handleExit);
404 },
405
406 markPhase(phase: McpStartupPhase): void {
407 state.phase = phase;

Callers

nothing calls this directly

Calls 1

removeListenerMethod · 0.65

Tested by

no test coverage detected