MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / installSignalHandlers

Method installSignalHandlers

src/mcp/index.ts:488–491  ·  view source on GitHub ↗

Standard SIGINT/SIGTERM handlers that route to our `stop()` (direct mode).

()

Source from the content-addressed store, hash-verified

486
487 /** Standard SIGINT/SIGTERM handlers that route to our `stop()` (direct mode). */
488 private installSignalHandlers(): void {
489 process.on('SIGINT', () => this.stop());
490 process.on('SIGTERM', () => this.stop());
491 }
492
493 /**
494 * PPID watchdog (#277) — direct mode only. Daemon mode is detached on purpose

Callers 1

startDirectMethod · 0.95

Calls 2

stopMethod · 0.95
onMethod · 0.65

Tested by

no test coverage detected