MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / handleSigint

Function handleSigint

cli/src/hooks/use-exit-handler.ts:92–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90
91 useEffect(() => {
92 const handleSigint = () => {
93 if (exitWarningTimeoutRef.current) {
94 clearTimeout(exitWarningTimeoutRef.current)
95 exitWarningTimeoutRef.current = null
96 }
97
98 exitCli()
99 }
100
101 process.on('SIGINT', handleSigint)
102 return () => {

Callers

nothing calls this directly

Calls 1

exitCliFunction · 0.85

Tested by

no test coverage detected